soumitra-st commented on code in PR #11884:
URL: https://github.com/apache/pinot/pull/11884#discussion_r1373726208
##########
pinot-broker/src/main/java/org/apache/pinot/broker/requesthandler/MultiStageBrokerRequestHandler.java:
##########
@@ -170,7 +170,6 @@ protected BrokerResponse handleRequest(long requestId,
String query, @Nullable S
if (!hasTableAccess(requesterIdentity, tableNames, requestContext,
httpHeaders)) {
throw new WebApplicationException("Permission denied",
Response.Status.FORBIDDEN);
}
- updatePhaseTimingForTables(tableNames, BrokerQueryPhase.AUTHORIZATION,
System.nanoTime() - compilationEndTimeNs);
Review Comment:
If access has been denied the WebApplicationException will be thrown and the
metric will not be update.
--
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]