Fix pause/resume logic in FullRollingRestartIT#22366
Conversation
PR Reviewer Guide 🔍(Review updated until commit 18742bb)Here are some key observations to aid the review process:
|
PR Code Suggestions ✨Latest suggestions up to 18742bb
Previous suggestionsSuggestions up to commit 21cef01
|
Separate shutdown from pause so background updates resume after each node restart, and replace Thread.sleep with assertBusy for in-flight work. Resolves opensearch-project#20064. Signed-off-by: MdTanwer <tanw9004167@gmail.com>
21cef01 to
18742bb
Compare
|
Persistent review updated to latest commit 18742bb |
|
❕ Gradle check result for 18742bb: 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 Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #22366 +/- ##
============================================
- Coverage 73.44% 73.43% -0.02%
+ Complexity 76114 76111 -3
============================================
Files 6076 6076
Lines 345508 345508
Branches 49732 49732
============================================
- Hits 253773 253708 -65
- Misses 71497 71606 +109
+ Partials 20238 20194 -44 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
Summary
Fixes #20064
testDerivedSourceWithConcurrentUpdatesRollingRestartwhere a singlestopflag permanently terminated the background update thread on the first node restartshutdownandpausedflags so updates can pause during each node restart and resume afterward.Thread.sleepwithassertBusyto wait for in-flight updates to complete, and removes the@SuppressForbiddenannotation.