Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix deletion permits flow in RemoteFsTimestampAwareTranslog #16282

Conversation

sachinpkale
Copy link
Member

@sachinpkale sachinpkale commented Oct 11, 2024

Description

  • This PR is making change RemoteFsTranslog and RemoteFsTimestampAwareTranslog to ensure following:
    • Deletion permits are released when no longer required
    • More than REMOTE_DELETION_PERMITS are not available at any given point

Check List

  • Functionality includes testing.
  • [ ] API changes companion pull request created, if applicable.
  • [ ] Public documentation issue/PR created, if applicable.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

Copy link
Contributor

❌ Gradle check result for e6a099a: FAILURE

Please examine the workflow log, locate, and copy-paste the failure(s) below, then iterate to green. Is the failure a flaky test unrelated to your change?

Copy link
Contributor

✅ Gradle check result for e6a099a: SUCCESS

Copy link

codecov bot commented Oct 11, 2024

Codecov Report

Attention: Patch coverage is 58.18182% with 23 lines in your changes missing coverage. Please review.

Project coverage is 72.04%. Comparing base (691f725) to head (541daa5).
Report is 23 commits behind head on main.

Files with missing lines Patch % Lines
...index/translog/RemoteFsTimestampAwareTranslog.java 44.00% 14 Missing ⚠️
...dex/translog/transfer/TranslogTransferManager.java 79.16% 4 Missing and 1 partial ⚠️
...rg/opensearch/index/translog/RemoteFsTranslog.java 33.33% 4 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff              @@
##               main   #16282      +/-   ##
============================================
- Coverage     72.06%   72.04%   -0.02%     
+ Complexity    64822    64812      -10     
============================================
  Files          5308     5308              
  Lines        302574   302604      +30     
  Branches      43710    43713       +3     
============================================
- Hits         218048   218017      -31     
- Misses        66648    66674      +26     
- Partials      17878    17913      +35     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Signed-off-by: Sachin Kale <[email protected]>
Copy link
Contributor

❌ Gradle check result for 60c08be: FAILURE

Please examine the workflow log, locate, and copy-paste the failure(s) below, then iterate to green. Is the failure a flaky test unrelated to your change?

Copy link
Contributor

✅ Gradle check result for 60c08be: SUCCESS

Signed-off-by: Sachin Kale <[email protected]>
Copy link
Contributor

❌ Gradle check result for 541daa5: FAILURE

Please examine the workflow log, locate, and copy-paste the failure(s) below, then iterate to green. Is the failure a flaky test unrelated to your change?

Copy link
Contributor

❌ Gradle check result for 541daa5: FAILURE

Please examine the workflow log, locate, and copy-paste the failure(s) below, then iterate to green. Is the failure a flaky test unrelated to your change?

Copy link
Contributor

✅ Gradle check result for 541daa5: SUCCESS

Copy link
Member

@ashking94 ashking94 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@sachinpkale sachinpkale merged commit 23d1c7a into opensearch-project:main Oct 15, 2024
38 of 41 checks passed
@sachinpkale sachinpkale added the backport 2.x Backport to 2.x branch label Oct 15, 2024
opensearch-trigger-bot bot pushed a commit that referenced this pull request Oct 15, 2024
---------

Signed-off-by: Sachin Kale <[email protected]>
(cherry picked from commit 23d1c7a)
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
dbwiddis pushed a commit that referenced this pull request Oct 16, 2024
…16336)

---------


(cherry picked from commit 23d1c7a)

Signed-off-by: Sachin Kale <[email protected]>
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
dk2k pushed a commit to dk2k/OpenSearch that referenced this pull request Oct 16, 2024
dk2k pushed a commit to dk2k/OpenSearch that referenced this pull request Oct 17, 2024
dk2k pushed a commit to dk2k/OpenSearch that referenced this pull request Oct 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport 2.x Backport to 2.x branch skip-changelog
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants