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 06:20:47 UTC

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

eolivelli 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_r161147653
 
 

 ##########
 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:
   Is this working? With voidPromise?
   
   @merlimat @ivankelly I think not using voidPromise we are going to add an allocation on the hot path

----------------------------------------------------------------
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