-
Notifications
You must be signed in to change notification settings - Fork 2k
Implement parallel shard refresh behind cluster settings #17782
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
Implement parallel shard refresh behind cluster settings #17782
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:
|
d1943ab
to
eb1a065
Compare
❌ Gradle check result for eb1a065: 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? |
❌ 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 <[email protected]>
Signed-off-by: Ashish Singh <[email protected]>
Signed-off-by: Ashish Singh <[email protected]>
Signed-off-by: Ashish Singh <[email protected]>
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ideally the close should de-reference the refreshTask
…project#17782) * Implement parallel shard refresh behind cluster settings Signed-off-by: Ashish Singh <[email protected]> * Incorporate PR review comments Signed-off-by: Ashish Singh <[email protected]> * Incorporate PR review comments Signed-off-by: Ashish Singh <[email protected]> * Fix compilation failure Signed-off-by: Ashish Singh <[email protected]> --------- Signed-off-by: Ashish Singh <[email protected]> Signed-off-by: Tanishq Ranjan <[email protected]>
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
AsyncShardRefreshTask
class to handle shard-level refresh operationsIndexService
andIndexShard
to manage refresh task lifecycleBenefits
The feature is marked as experimental with
@ExperimentalApi
annotation.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.