-
Notifications
You must be signed in to change notification settings - Fork 1.4k
[timeseries] Decouple query dispatcher #17474
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
[timeseries] Decouple query dispatcher #17474
Conversation
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.
Pull request overview
This PR decouples the time-series query dispatcher from the multi-stage query dispatcher, creating a dedicated TimeSeriesQueryDispatcher class with its own lifecycle management. The change removes shared functionality that wasn't actually being used between the two dispatchers and fixes a channel cleanup bug.
Key changes:
- Moved time-series dispatch logic into a new dedicated
TimeSeriesQueryDispatcherclass - Fixed channel resource leak by implementing proper shutdown logic in the new dispatcher
- Removed time-series dependencies from
QueryDispatcherto simplify the multi-stage query dispatcher
Reviewed changes
Copilot reviewed 5 out of 5 changed files in this pull request and generated 4 comments.
Show a summary per file
| File | Description |
|---|---|
| TimeSeriesQueryDispatcher.java | New dedicated dispatcher for time-series queries with channel lifecycle management |
| QueryDispatcher.java | Removed time-series dispatch logic and related dependencies |
| TimeSeriesRequestHandler.java | Updated to use the new TimeSeriesQueryDispatcher directly |
| BaseBrokerStarter.java | Removed QueryDispatcher creation that was only needed for time-series queries |
| QueryDispatcherTest.java | Updated test to pass new required Duration parameter |
.../main/java/org/apache/pinot/query/service/dispatch/timeseries/TimeSeriesQueryDispatcher.java
Show resolved
Hide resolved
.../main/java/org/apache/pinot/query/service/dispatch/timeseries/TimeSeriesQueryDispatcher.java
Show resolved
Hide resolved
.../main/java/org/apache/pinot/query/service/dispatch/timeseries/TimeSeriesQueryDispatcher.java
Show resolved
Hide resolved
.../main/java/org/apache/pinot/query/service/dispatch/timeseries/TimeSeriesQueryDispatcher.java
Show resolved
Hide resolved
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #17474 +/- ##
============================================
- Coverage 63.30% 63.30% -0.01%
Complexity 1476 1476
============================================
Files 3163 3164 +1
Lines 188817 188815 -2
Branches 28899 28899
============================================
- Hits 119532 119529 -3
+ Misses 60019 60016 -3
- Partials 9266 9270 +4
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:
|
dfc7010 to
267ac99
Compare
TimeSeriesDispatchClient