You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@bookkeeper.apache.org by "hangc0276 (via GitHub)" <gi...@apache.org> on 2023/01/31 07:19:02 UTC

[GitHub] [bookkeeper] hangc0276 commented on a diff in pull request #3758: Fix ReadEntryProcessor v2 SchedulingDelayStats

hangc0276 commented on code in PR #3758:
URL: https://github.com/apache/bookkeeper/pull/3758#discussion_r1091534807


##########
bookkeeper-server/src/main/java/org/apache/bookkeeper/proto/PacketProcessorBase.java:
##########
@@ -166,8 +166,14 @@ protected void sendResponseAndWait(int rc, Object response, OpStatsLogger statsL
 
     @Override
     public void run() {
-        requestProcessor.getRequestStats().getWriteThreadQueuedLatency()
-                .registerSuccessfulEvent(MathUtils.elapsedNanos(enqueueNanos), TimeUnit.NANOSECONDS);
+        if (this instanceof ReadEntryProcessor) {

Review Comment:
   Use `request instanceof BookieProtocol.ReadRequest`?



-- 
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: commits-unsubscribe@bookkeeper.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org