You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@zookeeper.apache.org by cn...@apache.org on 2022/11/14 00:17:36 UTC

[zookeeper] branch revert-1944-ZOOKEEPER-4632 created (now f77364b19)

This is an automated email from the ASF dual-hosted git repository.

cnauroth pushed a change to branch revert-1944-ZOOKEEPER-4632
in repository https://gitbox.apache.org/repos/asf/zookeeper.git


      at f77364b19 Revert "ZOOKEEPER-4632: Fix NPE from ConnectionMetricsTest.testRevalidateCount"

This branch includes the following new commits:

     new f77364b19 Revert "ZOOKEEPER-4632: Fix NPE from ConnectionMetricsTest.testRevalidateCount"

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.



[zookeeper] 01/01: Revert "ZOOKEEPER-4632: Fix NPE from ConnectionMetricsTest.testRevalidateCount"

Posted by cn...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

cnauroth pushed a commit to branch revert-1944-ZOOKEEPER-4632
in repository https://gitbox.apache.org/repos/asf/zookeeper.git

commit f77364b1996d092c406b48596558d8ef82df8b86
Author: Chris Nauroth <cn...@apache.org>
AuthorDate: Sun Nov 13 16:17:32 2022 -0800

    Revert "ZOOKEEPER-4632: Fix NPE from ConnectionMetricsTest.testRevalidateCount"
---
 .../test/java/org/apache/zookeeper/server/ConnectionMetricsTest.java  | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/zookeeper-server/src/test/java/org/apache/zookeeper/server/ConnectionMetricsTest.java b/zookeeper-server/src/test/java/org/apache/zookeeper/server/ConnectionMetricsTest.java
index ac734d296..45d5c67ec 100644
--- a/zookeeper-server/src/test/java/org/apache/zookeeper/server/ConnectionMetricsTest.java
+++ b/zookeeper-server/src/test/java/org/apache/zookeeper/server/ConnectionMetricsTest.java
@@ -57,8 +57,8 @@ public class ConnectionMetricsTest extends ZKTestCase {
         util.enableLocalSession(false);
         util.startAll();
 
-        int follower1 = (int) util.getFollowerQuorumPeers().get(0).getMyId();
-        int follower2 = (int) util.getFollowerQuorumPeers().get(1).getMyId();
+        int follower1 = (int) util.getFollowerQuorumPeers().get(0).getId();
+        int follower2 = (int) util.getFollowerQuorumPeers().get(1).getId();
         LOG.info("connecting to server: {}", follower1);
         ClientBase.CountdownWatcher watcher = new ClientBase.CountdownWatcher();
         // create a connection to follower