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

Add pinned timestamp utils and setting to enable/disable the feature #15401

Merged

Conversation

sachinpkale
Copy link
Member

@sachinpkale sachinpkale commented Aug 25, 2024

Description

  • This PR adds utils related to pinned timestamp feature. As these methods are common and will be used by segment as well as translog GC, adding them in a common place is required.
  • It also adds a static setting to control enablement of remote store pinned timestamp feature.

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 c4489d8: UNSTABLE

Please review all flaky tests that succeeded after retry and create an issue if one does not already exist to track the flaky failure.

Copy link

codecov bot commented Aug 25, 2024

Codecov Report

Attention: Patch coverage is 89.83051% with 6 lines in your changes missing coverage. Please review.

Project coverage is 71.93%. Comparing base (6152afe) to head (84daaba).
Report is 43 commits behind head on main.

Files with missing lines Patch % Lines
.../org/opensearch/index/remote/RemoteStoreUtils.java 90.56% 2 Missing and 3 partials ⚠️
server/src/main/java/org/opensearch/node/Node.java 0.00% 0 Missing and 1 partial ⚠️
Additional details and impacted files
@@             Coverage Diff              @@
##               main   #15401      +/-   ##
============================================
- Coverage     71.95%   71.93%   -0.02%     
- Complexity    63254    63307      +53     
============================================
  Files          5224     5224              
  Lines        296079   296137      +58     
  Branches      42763    42776      +13     
============================================
- Hits         213030   213016      -14     
- Misses        65550    65657     +107     
+ Partials      17499    17464      -35     

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

@sachinpkale sachinpkale force-pushed the pinned-timestamp-setting branch from c4489d8 to 84daaba Compare August 25, 2024 16:55
@sachinpkale sachinpkale requested a review from jed326 as a code owner August 25, 2024 16:55
@sachinpkale sachinpkale changed the title Add setting to enable/disable remote store pinned timestamp feature Add pinned timestamp utils and setting to enable/disable the feature Aug 25, 2024
Copy link
Contributor

✅ Gradle check result for 84daaba: SUCCESS

@sachinpkale sachinpkale merged commit 9014894 into opensearch-project:main Aug 26, 2024
38 of 45 checks passed
@sachinpkale sachinpkale added the backport 2.x Backport to 2.x branch label Aug 31, 2024
opensearch-trigger-bot bot pushed a commit that referenced this pull request Aug 31, 2024
…15401)

Signed-off-by: Sachin Kale <[email protected]>
Co-authored-by: Sachin Kale <[email protected]>
(cherry picked from commit 9014894)
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
sachinpkale pushed a commit that referenced this pull request Aug 31, 2024
…15401) (#15549)

(cherry picked from commit 9014894)

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>
Co-authored-by: Sachin Kale <[email protected]>
akolarkunnu pushed a commit to akolarkunnu/OpenSearch that referenced this pull request Sep 10, 2024
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