-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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 timestamp pinning service and scheduler to update in-memory state #15180
Add timestamp pinning service and scheduler to update in-memory state #15180
Conversation
1179bfd
to
83c945b
Compare
❌ Gradle check result for 0cd75b1: 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? |
❌ Gradle check result for 1179bfd: 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? |
83c945b
to
3fe94b0
Compare
❌ Gradle check result for 83c945b: 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? |
❌ Gradle check result for 3fe94b0: 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? |
.../src/main/java/org/opensearch/gateway/remote/model/RemoteStorePinnedTimestampsBlobStore.java
Outdated
Show resolved
Hide resolved
4075aa1
to
9b2823c
Compare
Signed-off-by: Sachin Kale <kalsac@amazon.com>
❌ Gradle check result for 4104939: 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? |
❌ Gradle check result for bd569be: 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? |
server/src/main/java/org/opensearch/node/remotestore/RemoteStorePinnedTimestampService.java
Show resolved
Hide resolved
server/src/main/java/org/opensearch/node/remotestore/RemoteStorePinnedTimestampService.java
Outdated
Show resolved
Hide resolved
server/src/main/java/org/opensearch/node/remotestore/RemoteStorePinnedTimestampService.java
Show resolved
Hide resolved
server/src/main/java/org/opensearch/node/remotestore/RemoteStorePinnedTimestampService.java
Outdated
Show resolved
Hide resolved
server/src/main/java/org/opensearch/gateway/remote/model/RemotePinnedTimestamps.java
Show resolved
Hide resolved
server/src/main/java/org/opensearch/node/remotestore/RemoteStorePinnedTimestampService.java
Show resolved
Hide resolved
server/src/main/java/org/opensearch/node/remotestore/RemoteStorePinnedTimestampService.java
Show resolved
Hide resolved
❕ Gradle check result for 3bad790: 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. |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #15180 +/- ##
============================================
- Coverage 71.89% 71.83% -0.07%
- Complexity 63043 63064 +21
============================================
Files 5197 5200 +3
Lines 295311 295474 +163
Branches 42676 42687 +11
============================================
- Hits 212314 212246 -68
- Misses 65552 65827 +275
+ Partials 17445 17401 -44 ☔ View full report in Codecov by Sentry. |
Signed-off-by: Sachin Kale <kalsac@amazon.com>
Codecov patch is failing as integ test coverage is not covered (added in |
The backport to
To backport manually, run these commands in your terminal: # Navigate to the root of your repository
cd $(git rev-parse --show-toplevel)
# Fetch latest updates from GitHub
git fetch
# Create a new working tree
git worktree add ../.worktrees/OpenSearch/backport-2.x 2.x
# Navigate to the new working tree
pushd ../.worktrees/OpenSearch/backport-2.x
# Create a new branch
git switch --create backport/backport-15180-to-2.x
# Cherry-pick the merged commit of this pull request and resolve the conflicts
git cherry-pick -x --mainline 1 1717b551db0d6e5d22aff89bf6fd9873d8d4ec20
# Push it to GitHub
git push --set-upstream origin backport/backport-15180-to-2.x
# Go back to the original working tree
popd
# Delete the working tree
git worktree remove ../.worktrees/OpenSearch/backport-2.x Then, create a pull request where the |
@@ -807,6 +808,18 @@ protected Node( | |||
remoteIndexPathUploader = null; | |||
remoteClusterStateCleanupManager = null; | |||
} | |||
final RemoteStorePinnedTimestampService remoteStorePinnedTimestampService; | |||
if (isRemoteStoreAttributePresent(settings)) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should use isRemoteDataAttributePresent
here instead since this is required for remote data store.
BlobPath path = pinnedTimestampsBlobStore.getBlobPathForUpload(remotePinnedTimestamps); | ||
try { | ||
if (updateTimetampPinningSemaphore.tryAcquire(10, TimeUnit.MINUTES)) { | ||
ActionListener<Void> semaphoreAwareListener = ActionListener.runBefore(listener, updateTimetampPinningSemaphore::release); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
any unhandled exception is not logged in the listener chaining, we should log it to get visibility into unexpected failures
…opensearch-project#15180) --------- Signed-off-by: Sachin Kale <kalsac@amazon.com> Co-authored-by: Sachin Kale <kalsac@amazon.com>
…#15180) (#15547) --------- (cherry picked from commit 1717b55) Signed-off-by: Sachin Kale <kalsac@amazon.com> 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 <kalsac@amazon.com>
…opensearch-project#15180) --------- Signed-off-by: Sachin Kale <kalsac@amazon.com> Co-authored-by: Sachin Kale <kalsac@amazon.com>
Description
pin
andunpin
the timestamp.Related Issues
Check List
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.