-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
[Remote Store] Sync segments in refresh listener on refresh after commit #10830
Conversation
Compatibility status:Checks if related components are compatible with change 17b9dcd Incompatible componentsIncompatible components: [https://github.com/opensearch-project/cross-cluster-replication.git] Skipped componentsCompatible componentsCompatible components: [https://github.com/opensearch-project/security-analytics.git, https://github.com/opensearch-project/custom-codecs.git, https://github.com/opensearch-project/security.git, https://github.com/opensearch-project/opensearch-oci-object-storage.git, https://github.com/opensearch-project/index-management.git, https://github.com/opensearch-project/geospatial.git, https://github.com/opensearch-project/sql.git, https://github.com/opensearch-project/job-scheduler.git, https://github.com/opensearch-project/notifications.git, https://github.com/opensearch-project/observability.git, https://github.com/opensearch-project/k-nn.git, https://github.com/opensearch-project/neural-search.git, https://github.com/opensearch-project/alerting.git, https://github.com/opensearch-project/performance-analyzer.git, https://github.com/opensearch-project/anomaly-detection.git, https://github.com/opensearch-project/performance-analyzer-rca.git, https://github.com/opensearch-project/ml-commons.git, https://github.com/opensearch-project/asynchronous-search.git, https://github.com/opensearch-project/common-utils.git, https://github.com/opensearch-project/reporting.git] |
Gradle Check (Jenkins) Run Completed with:
|
Gradle Check (Jenkins) Run Completed with:
|
Codecov Report
@@ Coverage Diff @@
## main #10830 +/- ##
============================================
- Coverage 71.31% 71.29% -0.03%
- Complexity 58671 58728 +57
============================================
Files 4860 4869 +9
Lines 276335 276490 +155
Branches 40198 40204 +6
============================================
+ Hits 197068 197123 +55
- Misses 62803 62886 +83
- Partials 16464 16481 +17
|
Flaky test - #2775 |
Gradle Check (Jenkins) Run Completed with:
|
Gradle Check (Jenkins) Run Completed with:
|
server/src/main/java/org/opensearch/index/shard/RemoteStoreRefreshListener.java
Show resolved
Hide resolved
Gradle Check (Jenkins) Run Completed with:
|
server/src/internalClusterTest/java/org/opensearch/remotestore/RemoteStoreStatsIT.java
Outdated
Show resolved
Hide resolved
test/framework/src/main/java/org/opensearch/test/OpenSearchIntegTestCase.java
Outdated
Show resolved
Hide resolved
Signed-off-by: Ashish Singh <[email protected]>
Signed-off-by: Ashish Singh <[email protected]>
Signed-off-by: Ashish Singh <[email protected]>
Gradle Check (Jenkins) Run Completed with:
|
Gradle Check (Jenkins) Run Completed with:
|
This is a build failure before the rebase of BWC PR that was causing this issue. |
Flaky test - #10755. |
…mit (#10830) * [Remote Store] Sync segments in refresh listener on refresh after commit Signed-off-by: Ashish Singh <[email protected]> * Add Integration Tests Signed-off-by: Ashish Singh <[email protected]> * Add comments and java doc Signed-off-by: Ashish Singh <[email protected]> --------- Signed-off-by: Ashish Singh <[email protected]> (cherry picked from commit 7453daa) Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
…mit (#10830) (#10849) * [Remote Store] Sync segments in refresh listener on refresh after commit * Add Integration Tests * Add comments and java doc --------- (cherry picked from commit 7453daa) Signed-off-by: Ashish Singh <[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>
…mit (opensearch-project#10830) * [Remote Store] Sync segments in refresh listener on refresh after commit Signed-off-by: Ashish Singh <[email protected]> * Add Integration Tests Signed-off-by: Ashish Singh <[email protected]> * Add comments and java doc Signed-off-by: Ashish Singh <[email protected]> --------- Signed-off-by: Ashish Singh <[email protected]> Signed-off-by: Shivansh Arora <[email protected]>
Description
With this PR, we are doing following changes -
remoteDirectory.init()
method invocation inrunAfterRefreshExactlyOnce(..)
. This ensures that we do not see spikes in refresh lag bytes on failovers.runAfterRefreshExactlyOnce
gets executed, but thesyncSegments
does not. This happens due to thethis.primaryTerm != indexShard.getOperationPrimaryTerm()
evaluating true for the first time, but evaluating to false on the second time.Related Issues
Resolves #10821, #10831
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.