From dev-return-79259-archive-asf-public=cust-asf.ponee.io@zookeeper.apache.org Fri Mar 15 17:55:32 2019 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx-eu-01.ponee.io (Postfix) with SMTP id 5B606180763 for ; Fri, 15 Mar 2019 18:55:32 +0100 (CET) Received: (qmail 32630 invoked by uid 500); 15 Mar 2019 17:55:31 -0000 Mailing-List: contact dev-help@zookeeper.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@zookeeper.apache.org Delivered-To: mailing list dev@zookeeper.apache.org Received: (qmail 32611 invoked by uid 99); 15 Mar 2019 17:55:31 -0000 Received: from ec2-52-202-80-70.compute-1.amazonaws.com (HELO gitbox.apache.org) (52.202.80.70) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 15 Mar 2019 17:55:31 +0000 From: GitBox To: dev@zookeeper.apache.org Subject: [GitHub] [zookeeper] jhuan31 commented on a change in pull request #849: ZOOKEEPER-3305: Add Quorum Packet metrics Message-ID: <155267253052.4580.9149021928131794242.gitbox@gitbox.apache.org> Date: Fri, 15 Mar 2019 17:55:30 -0000 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit jhuan31 commented on a change in pull request #849: ZOOKEEPER-3305: Add Quorum Packet metrics URL: https://github.com/apache/zookeeper/pull/849#discussion_r266089095 ########## File path: zookeeper-server/src/main/java/org/apache/zookeeper/server/quorum/LearnerHandler.java ########## @@ -155,12 +176,42 @@ public synchronized boolean check(long time) { private SyncLimitCheck syncLimitCheck = new SyncLimitCheck(); + private static class MarkerQuorumPacket extends QuorumPacket { + long time; + MarkerQuorumPacket(long time) { + this.time = time; + } + + @Override + public int hashCode() { + return Objects.hash(super.hashCode(), time); + } + + @Override + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; Review comment: this is auto generated. don't want to change unless have-to ---------------------------------------------------------------- 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: users@infra.apache.org With regards, Apache Git Services