-
Notifications
You must be signed in to change notification settings - Fork 1.4k
[multistage] improve dispatch exception handling #11688
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
Conversation
782d9e6 to
664f363
Compare
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.
This is no longer a service. IMO it might be more readable if we directly implement this logic in QueryServer.submit(). I don't really see the value of this wrapper class
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.
good point. will convert it into a util --> its only job is to maintain the list of futures for completion (wrapper class will make it easy to retest the logic IMO)
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #11688 +/- ##
============================================
- Coverage 63.10% 63.03% -0.07%
+ Complexity 1121 1118 -3
============================================
Files 2343 2342 -1
Lines 125693 125663 -30
Branches 19310 19318 +8
============================================
- Hits 79315 79217 -98
- Misses 40728 40796 +68
Partials 5650 5650
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
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.
Can this ever throw Throwable? Or is it always wrapped in ExecutionException?
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.
it shouldn't be but it would be hell of a pain to debug if it did. so just to keep it safe. we should at least have a branch to handle it
1dcf3d5 to
6b53ef1
Compare
6b53ef1 to
766c8c3
Compare
QueryServer/QueryDispatcherwhich is the center of the dispatch/server pair