-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Fix flaky tests for issue 19725 #20259
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
base: main
Are you sure you want to change the base?
Conversation
Signed-off-by: Joe Liu <[email protected]>
WalkthroughA null-guard fix in QueryPhaseResultConsumerTests prevents NullPointerException when the accumulator's first invocation receives a null current exception. The code now safely returns the previous exception and conditionally chains suppressed exceptions only when both are present. Changes
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~5 minutes
Suggested labels
Suggested reviewers
Poem
Pre-merge checks and finishing touches❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✨ Finishing touches
🧪 Generate unit tests (beta)
📜 Recent review detailsConfiguration used: CodeRabbit UI Review profile: CHILL Plan: Pro 📒 Files selected for processing (1)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (20)
🔇 Additional comments (1)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #20259 +/- ##
============================================
+ Coverage 73.20% 73.25% +0.05%
+ Complexity 71745 71742 -3
============================================
Files 5795 5795
Lines 328304 328304
Branches 47283 47283
============================================
+ Hits 240334 240502 +168
+ Misses 68663 68504 -159
+ Partials 19307 19298 -9 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Description
Fix flaky tests when on the first failure callback, prev is null (because the AtomicReference starts empty), and Throwable.addSuppressed(null) throws: “Cannot suppress a null exception.” That exception then becomes an uncaught exception on the test thread.
The failure in
testCircuitBreakerTriggersBeforeBatchedReduce()is also coming fromtestProgressListenerExceptionsAreCaught()Related Issues
Resolves #19725
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.
Summary by CodeRabbit
✏️ Tip: You can customize this high-level summary in your review settings.