Batching for persistent task cluster service which will help C…#21245
Batching for persistent task cluster service which will help C…#21245mohit10011999 wants to merge 8 commits intoopensearch-project:mainfrom
Conversation
PR Code Analyzer ❗AI-powered 'Code-Diff-Analyzer' found issues on commit 8ccb182.
The table above displays the top 10 most important findings. Pull Requests Author(s): Please update your Pull Request according to the report above. Repository Maintainer(s): You can Thanks. |
PR Reviewer Guide 🔍(Review updated until commit 8ccb182)Here are some key observations to aid the review process:
|
PR Code Suggestions ✨Latest suggestions up to 8ccb182 Explore these optional code suggestions:
Previous suggestionsSuggestions up to commit 03654bdSuggestions up to commit 3721d13
Suggestions up to commit 816c60a
Suggestions up to commit 5dc70a0
Suggestions up to commit b0baad9
|
|
❌ Gradle check result for 1b72b46: 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? |
1b72b46 to
327cb4a
Compare
|
Persistent review updated to latest commit 327cb4a |
|
❌ Gradle check result for 327cb4a: 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? |
327cb4a to
8607b88
Compare
|
Persistent review updated to latest commit 8607b88 |
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #21245 +/- ##
============================================
+ Coverage 73.50% 73.53% +0.03%
+ Complexity 74473 74464 -9
============================================
Files 5967 5967
Lines 338227 338240 +13
Branches 48754 48759 +5
============================================
+ Hits 248612 248725 +113
+ Misses 69820 69678 -142
- Partials 19795 19837 +42 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
Persistent review updated to latest commit 25b5959 |
|
Persistent review updated to latest commit 1734210 |
|
❌ Gradle check result for 1734210: null 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? |
1734210 to
af431f7
Compare
|
Persistent review updated to latest commit 380e3f0 |
|
❌ Gradle check result for 380e3f0: null 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? |
380e3f0 to
bdf55d3
Compare
|
Persistent review updated to latest commit bdf55d3 |
|
❌ Gradle check result for bdf55d3: 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? |
|
Persistent review updated to latest commit 1367ad4 |
|
❌ Gradle check result for 1367ad4: 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? |
1367ad4 to
c60ae39
Compare
|
Persistent review updated to latest commit c60ae39 |
|
Persistent review updated to latest commit f3f6710 |
|
❌ Gradle check result for f3f6710: 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? |
f3f6710 to
e215394
Compare
|
Persistent review updated to latest commit e215394 |
|
❌ Gradle check result for ded318d: 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? |
ded318d to
b0baad9
Compare
|
Persistent review updated to latest commit b0baad9 |
|
Persistent review updated to latest commit 5dc70a0 |
|
❌ Gradle check result for 5dc70a0: 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? |
5dc70a0 to
816c60a
Compare
|
Persistent review updated to latest commit 816c60a |
|
❌ Gradle check result for 816c60a: 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? |
3397e08 to
3721d13
Compare
|
Persistent review updated to latest commit 3721d13 |
|
❌ Gradle check result for 3721d13: 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? |
…CR plugin from overwhelming cluster manager during high volume of incoming replication tasks Signed-off-by: Mohit Kumar <mohitamg@amazon.com>
…CR plugin from overwhelming cluster manager during high volume of incoming replication tasks Signed-off-by: Mohit Kumar <mohitamg@amazon.com>
Signed-off-by: Mohit Kumar <mohitamg@amazon.com>
…ice batching Signed-off-by: Mohit Kumar <mohitamg@amazon.com>
Signed-off-by: Mohit Kumar <mohitamg@amazon.com>
3721d13 to
03654bd
Compare
|
Persistent review updated to latest commit 03654bd |
|
❌ Gradle check result for 03654bd: 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? |
|
Please provide the testing details with CCR. |
|
Persistent review updated to latest commit 776b6e2 |
|
❌ Gradle check result for 776b6e2: 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? |
|
Persistent review updated to latest commit 8ccb182 |
|
❌ Gradle check result for 8ccb182: 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? |
…CR plugin from overwhelming cluster manager during high volume of incoming replication tasks
Description
Code flow:-
Step 1: Data node triggers a persistent task state change
Step 2: Transport action on cluster manager receives the request
Step 3: PersistentTasksClusterService creates an entry and submits it (this PR changes)
Step 4: ClusterManagerService delegates to TaskBatcher
Step 5: ClusterManagerTaskThrottler.onBeginSubmit checks the threshold
Step 6: TaskBatcher accumulates tasks
Step 7: TaskBatcher.runIfNotProcessed drains all pending tasks
Step 8: ClusterManagerService.Batcher.run calls the executor
Step 9: PersistentTaskUpdateExecutor.execute processes the batch
Step 10: ClusterManagerService publishes the new cluster state
Step 11: Listeners are called back
Before vs After example:
Before: 460 requests - 460 separate ClusterStateUpdateTask instances - 460 different batching keys - 460 separate execute() calls - 460 cluster state publish cycles.
After: 460 requests - 460 PersistentTaskUpdateEntry objects - 1 batching key (singleton executor) - 1 execute() call processing all 460 - 1 cluster state publish cycle.
Related Issues
Resolves #[Issue number to be closed when this PR is merged]
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.