jhuan31 commented on a change in pull request #855: ZOOKEEPER-3310: Add metrics
for prep processor
URL: https://github.com/apache/zookeeper/pull/855#discussion_r266551859
##########
File path:
zookeeper-server/src/main/java/org/apache/zookeeper/server/PrepRequestProcessor.java
##########
@@ -902,6 +909,7 @@ protected void pRequest(Request request) throws
RequestProcessorException {
}
}
request.zxid = zks.getZxid();
+ ServerMetrics.PREP_PROCESSOR_QUEUE_TIME.add(Time.currentElapsedTime()
- request.prepQueueStartTime);
Review comment:
A request that has got here must have gone through processRequest(), which
records prepQueueStartTime(). Can't think of a scenario that it stays -1.
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services