Implement parallel shard refresh behind cluster settings#17782
Implement parallel shard refresh behind cluster settings#17782sachinpkale merged 4 commits intoopensearch-project:mainfrom
Conversation
b5886d8 to
d814114
Compare
d814114 to
74c406f
Compare
|
❕ Gradle check result for 74c406f: 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 #17782 +/- ##
============================================
+ Coverage 72.51% 72.54% +0.02%
- Complexity 67108 67128 +20
============================================
Files 5475 5478 +3
Lines 309916 310125 +209
Branches 45060 45080 +20
============================================
+ Hits 224725 224966 +241
+ Misses 66895 66820 -75
- Partials 18296 18339 +43 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
❌ Gradle check result for 4349e25: 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 4349e25: 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 4349e25: 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 4349e25: 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? |
4349e25 to
c428af3
Compare
|
❌ Gradle check result for c428af3: 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? |
Signed-off-by: Ashish Singh <ssashish@amazon.com>
Signed-off-by: Ashish Singh <ssashish@amazon.com>
Signed-off-by: Ashish Singh <ssashish@amazon.com>
Signed-off-by: Ashish Singh <ssashish@amazon.com>
c428af3 to
11e7831
Compare
|
❌ Gradle check result for 11e7831: 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 11e7831: 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? |
| refreshTask.close(); | ||
| refreshTask = null; |
There was a problem hiding this comment.
Ideally the close should de-reference the refreshTask
…project#17782) * Implement parallel shard refresh behind cluster settings Signed-off-by: Ashish Singh <ssashish@amazon.com> * Incorporate PR review comments Signed-off-by: Ashish Singh <ssashish@amazon.com> * Incorporate PR review comments Signed-off-by: Ashish Singh <ssashish@amazon.com> * Fix compilation failure Signed-off-by: Ashish Singh <ssashish@amazon.com> --------- Signed-off-by: Ashish Singh <ssashish@amazon.com> Signed-off-by: Tanishq Ranjan <tqranjan@amazon.com>
…project#17782) * Implement parallel shard refresh behind cluster settings Signed-off-by: Ashish Singh <ssashish@amazon.com> * Incorporate PR review comments Signed-off-by: Ashish Singh <ssashish@amazon.com> * Incorporate PR review comments Signed-off-by: Ashish Singh <ssashish@amazon.com> * Fix compilation failure Signed-off-by: Ashish Singh <ssashish@amazon.com> --------- Signed-off-by: Ashish Singh <ssashish@amazon.com>
…project#17782) * Implement parallel shard refresh behind cluster settings Signed-off-by: Ashish Singh <ssashish@amazon.com> * Incorporate PR review comments Signed-off-by: Ashish Singh <ssashish@amazon.com> * Incorporate PR review comments Signed-off-by: Ashish Singh <ssashish@amazon.com> * Fix compilation failure Signed-off-by: Ashish Singh <ssashish@amazon.com> --------- Signed-off-by: Ashish Singh <ssashish@amazon.com>
Description
This PR implements parallel shard-level refresh capability that can be enabled/disabled via cluster settings. Key changes include:
cluster.index.refresh.shard_level.enabled(default: false) to control refresh behaviorImplementation Details
AsyncShardRefreshTaskclass to handle shard-level refresh operationsIndexServiceandIndexShardto manage refresh task lifecycleBenefits
The feature is marked as experimental with
@ExperimentalApiannotation.Related Issues
Meta issue: #17776
Check List
[ ] API changes companion pull request 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.