gianm closed pull request #6663: Emit query metrics even if the ETags are equal
URL: https://github.com/apache/incubator-druid/pull/6663
 
 
   

This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:

As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):

diff --git a/server/src/main/java/org/apache/druid/server/QueryResource.java 
b/server/src/main/java/org/apache/druid/server/QueryResource.java
index 15b63729d1b..fba6672e51a 100644
--- a/server/src/main/java/org/apache/druid/server/QueryResource.java
+++ b/server/src/main/java/org/apache/druid/server/QueryResource.java
@@ -194,6 +194,8 @@ public Response doPost(
       final String prevEtag = getPreviousEtag(req);
 
       if (prevEtag != null && 
prevEtag.equals(responseContext.get(HEADER_ETAG))) {
+        queryLifecycle.emitLogsAndMetrics(null, req.getRemoteAddr(), -1);
+        successfulQueryCount.incrementAndGet();
         return Response.notModified().build();
       }
 


 

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to