Emit query metrics even if the ETags are equal (#6663)

This commit is contained in:
Mingming Qiu 2018-11-28 07:18:01 +08:00 committed by Gian Merlino
parent 219f0965dc
commit 9a89200607
1 changed files with 2 additions and 0 deletions

View File

@ -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();
}