HBASE-27531 Addendum: fix test

This commit is contained in:
Bryan Beaudreault 2023-01-11 19:38:18 -05:00
parent 209f9b5ee2
commit a7d60cefe7
1 changed files with 2 additions and 2 deletions

View File

@ -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);