shauryachats commented on code in PR #17466:
URL: https://github.com/apache/pinot/pull/17466#discussion_r2674276101
##########
pinot-broker/src/main/java/org/apache/pinot/broker/broker/helix/BaseBrokerStarter.java:
##########
@@ -414,11 +414,16 @@ public void start()
// multi-stage request handler uses both Netty and GRPC ports.
// worker requires both the "Netty port" for protocol transport; and
"GRPC port" for mailbox transport.
// TODO: decouple protocol and engine selection.
+ // This query dispatcher is only used by the time-series request
handler. The multi-stage request handler creates
+ // it's own query dispatcher.
queryDispatcher = createQueryDispatcher(_brokerConf);
multiStageBrokerRequestHandler =
new MultiStageBrokerRequestHandler(_brokerConf, brokerId,
requestIdGenerator, _routingManager,
_accessControlFactory, _queryQuotaManager, _tableCache,
_multiStageQueryThrottler, _failureDetector,
_threadAccountant, multiClusterRoutingContext);
+ MultiStageBrokerRequestHandler finalHandler =
multiStageBrokerRequestHandler;
+ _routingManager.setServerReenableCallback(
Review Comment:
@dang-stripe the change is intentional - since we wanted to introduce
MultiClusterRoutingManager for cross-cluster federated queries.
I would suggest keeping the `setServerReenableCallback` limited to
`BrokerRoutingManager` instead of `BaseBrokerRoutingManager` since this seems
specific to the BrokerRoutingManager and not MultiClusterRoutingManager
(MultiClusterRoutingManager basically contains BrokerRoutingManager for each
Pinot cluster included in the routing for query federation - hence no need for
serverReenableCallback for the MultiClusterRoutingManager itself).
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]