You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hbase.apache.org by bb...@apache.org on 2023/01/12 00:39:28 UTC

[hbase] branch branch-2 updated: HBASE-27531 Addendum: fix test

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

bbeaudreault pushed a commit to branch branch-2
in repository https://gitbox.apache.org/repos/asf/hbase.git


The following commit(s) were added to refs/heads/branch-2 by this push:
     new a7d60cefe71 HBASE-27531 Addendum: fix test
a7d60cefe71 is described below

commit a7d60cefe71e62bfd3e47cebe3c7100c2c15edc8
Author: Bryan Beaudreault <bb...@hubspot.com>
AuthorDate: Wed Jan 11 19:38:18 2023 -0500

    HBASE-27531 Addendum: fix test
---
 .../org/apache/hadoop/hbase/client/TestClientOperationTimeout.java    | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/hbase-server/src/test/java/org/apache/hadoop/hbase/client/TestClientOperationTimeout.java b/hbase-server/src/test/java/org/apache/hadoop/hbase/client/TestClientOperationTimeout.java
index 923cf1d2c13..ccdd153dd73 100644
--- a/hbase-server/src/test/java/org/apache/hadoop/hbase/client/TestClientOperationTimeout.java
+++ b/hbase-server/src/test/java/org/apache/hadoop/hbase/client/TestClientOperationTimeout.java
@@ -273,7 +273,7 @@ public class TestClientOperationTimeout {
 
       MetricsConnection metrics =
         ((ConnectionImplementation) specialConnection).getConnectionMetrics();
-      long metaCacheNumClearServerPreFailure = metrics.getMetaCacheNumClearServer().getCount();
+      long metaCacheNumClearServerPreFailure = metrics.getMetaCacheNumClearRegion().getCount();
 
       // meta scan should take up most of the timeout but not all
       DELAY_META_SCAN = 300;
@@ -293,7 +293,7 @@ public class TestClientOperationTimeout {
 
         // We expect that the error caused by FAIL_BATCH would clear the meta cache but
         // the OperationTimeoutExceededException should not. So only allow new cache clear here
-        long metaCacheNumClearServerPostFailure = metrics.getMetaCacheNumClearServer().getCount();
+        long metaCacheNumClearServerPostFailure = metrics.getMetaCacheNumClearRegion().getCount();
         Assert.assertEquals(metaCacheNumClearServerPreFailure + 1,
           metaCacheNumClearServerPostFailure);