mirror of https://github.com/apache/druid.git
Emit query metrics even if the ETags are equal (#6663)
This commit is contained in:
parent
219f0965dc
commit
9a89200607
|
@ -194,6 +194,8 @@ public class QueryResource implements QueryCountStatsProvider
|
|||
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();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue