You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@bookkeeper.apache.org by GitBox <gi...@apache.org> on 2018/01/12 09:00:56 UTC

[GitHub] ivankelly commented on a change in pull request #971: BOOKKEEPER-934: Additional stats to track netty latencies in PCBC

ivankelly commented on a change in pull request #971: BOOKKEEPER-934: Additional stats to track netty latencies in PCBC
URL: https://github.com/apache/bookkeeper/pull/971#discussion_r161168569
 
 

 ##########
 File path: bookkeeper-server/src/main/java/org/apache/bookkeeper/proto/PerChannelBookieClient.java
 ##########
 @@ -861,7 +875,21 @@ private void writeAndFlush(final Channel channel,
         }
 
         try {
-            channel.writeAndFlush(request, channel.voidPromise());
+            final long startTime = MathUtils.nowInNano();
+            ChannelFuture future = channel.writeAndFlush(request, channel.voidPromise());
 
 Review comment:
   yes, the void promise bit is there to avoid an allocation. it was part of yahoo's GC changes.

----------------------------------------------------------------
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:
users@infra.apache.org


With regards,
Apache Git Services