accumulo-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ctubb...@apache.org
Subject [accumulo] branch 1.9 updated: Fix unused variable warning from #1536
Date Sat, 07 Mar 2020 00:39:10 GMT
This is an automated email from the ASF dual-hosted git repository.

ctubbsii pushed a commit to branch 1.9
in repository https://gitbox.apache.org/repos/asf/accumulo.git


The following commit(s) were added to refs/heads/1.9 by this push:
     new 68e1b8b  Fix unused variable warning from #1536
68e1b8b is described below

commit 68e1b8b1719c4b43cbf6698bf66e7206355c0fa7
Author: Christopher Tubbs <ctubbsii@apache.org>
AuthorDate: Fri Mar 6 18:57:32 2020 -0500

    Fix unused variable warning from #1536
---
 .../org/apache/accumulo/master/metrics/fate/FateMetricsTest.java    | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/server/master/src/test/java/org/apache/accumulo/master/metrics/fate/FateMetricsTest.java
b/server/master/src/test/java/org/apache/accumulo/master/metrics/fate/FateMetricsTest.java
index 2275d04..afc3333 100644
--- a/server/master/src/test/java/org/apache/accumulo/master/metrics/fate/FateMetricsTest.java
+++ b/server/master/src/test/java/org/apache/accumulo/master/metrics/fate/FateMetricsTest.java
@@ -68,16 +68,14 @@ public class FateMetricsTest {
 
   private final MetricsSystem ms = DefaultMetricsSystem.initialize("Accumulo");
 
-  private static ZooReaderWriter zooReaderWriter;
-
   @BeforeClass
   public static void setupZk() {
     // using default zookeeper port - we don't have a full configuration
     szk = new ZooKeeperTestingServer();
     szk.initPaths(MOCK_ZK_ROOT);
 
-    // populate ZooReaderWriter cache
-    zooReaderWriter = ZooReaderWriter.getInstance(szk.getConn(), 30_000, A_FAKE_SECRET);
+    // populate ZooReaderWriter cache for future ZooReaderWriter.getInstance() calls
+    ZooReaderWriter.getInstance(szk.getConn(), 30_000, A_FAKE_SECRET);
   }
 
   @AfterClass


Mime
View raw message