lvfangmin commented on a change in pull request #849: ZOOKEEPER-3305: Add
Quorum Packet metrics
URL: https://github.com/apache/zookeeper/pull/849#discussion_r265852493
##########
File path:
zookeeper-server/src/main/java/org/apache/zookeeper/server/quorum/LearnerHandler.java
##########
@@ -98,6 +110,15 @@ int getVersion() {
final LinkedBlockingQueue<QuorumPacket> queuedPackets =
new LinkedBlockingQueue<QuorumPacket>();
+ /**
+ * Marker packets would be added to quorum packet queue after every
+ * markerPacketInterval packets.
+ * It is ok if packetCounter overflows.
+ */
+ private final int markerPacketInterval = 1000;
+ private AtomicInteger packetCounter = new AtomicInteger();
+
+
Review comment:
Remove extra empty line here.
----------------------------------------------------------------
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