clintropolis commented on a change in pull request #11676:
URL: https://github.com/apache/druid/pull/11676#discussion_r709900163
##########
File path:
services/src/main/java/org/apache/druid/server/AsyncQueryForwardingServlet.java
##########
@@ -219,6 +219,7 @@ protected void service(HttpServletRequest request,
HttpServletResponse response)
String connectionId = getAvaticaProtobufConnectionId(protobufRequest);
targetServer = hostFinder.findServerAvatica(connectionId);
request.setAttribute(AVATICA_QUERY_ATTRIBUTE, requestBytes);
+ LOG.debug("Forwarding protobuf JDBC connection [%s] to broker [%s]",
connectionId, targetServer);
Review comment:
Thinking further about this I think would be better handled if the
routing logic was just moved out of `AsyncQueryForwardingServlet` into some
dedicated query router class that does the routing logic, then these new logs
would live in that class and debug logging could more selectively just enable
those logs (without picking up all the underlying jetty servlet debug logs).
--
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]