Skip to content

Conversation

@walterddr
Copy link
Contributor

@walterddr walterddr commented Sep 26, 2023

  • dispatch/server pair is already tested in the QueryServer test
  • utilize the submission service just like the one used in QueryServer/QueryDispatcher which is the center of the dispatch/server pair

@walterddr walterddr added the multi-stage Related to the multi-stage query engine label Sep 26, 2023
@walterddr walterddr force-pushed the fix_exception_handling branch from 782d9e6 to 664f363 Compare September 26, 2023 22:12
Copy link
Contributor

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

Copy link
Contributor Author

@walterddr walterddr Sep 26, 2023

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-commenter
Copy link

codecov-commenter commented Sep 26, 2023

Codecov Report

❌ Patch coverage is 84.61538% with 2 lines in your changes missing coverage. Please review.
✅ Project coverage is 63.03%. Comparing base (e6655dd) to head (47e5f49).
⚠️ Report is 3179 commits behind head on master.

Files with missing lines Patch % Lines
...apache/pinot/query/service/server/QueryServer.java 84.61% 1 Missing and 1 partial ⚠️
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              
Flag Coverage Δ
integration <0.01% <0.00%> (ø)
integration1 <0.01% <0.00%> (ø)
integration2 0.00% <0.00%> (ø)
java-11 63.01% <84.61%> (-0.04%) ⬇️
java-17 62.89% <84.61%> (-0.02%) ⬇️
java-20 49.94% <84.61%> (-13.00%) ⬇️
temurin 63.03% <84.61%> (-0.07%) ⬇️
unittests 63.03% <84.61%> (-0.07%) ⬇️
unittests1 67.19% <84.61%> (-0.05%) ⬇️
unittests2 14.44% <0.00%> (-0.04%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Copy link
Contributor

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?

Copy link
Contributor Author

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

@walterddr walterddr force-pushed the fix_exception_handling branch from 1dcf3d5 to 6b53ef1 Compare September 27, 2023 17:28
@walterddr walterddr force-pushed the fix_exception_handling branch from 6b53ef1 to 766c8c3 Compare September 27, 2023 17:28
@walterddr walterddr merged commit b16cdec into apache:master Sep 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

multi-stage Related to the multi-stage query engine testing

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants