HBASE-25030 [Flaky Test] TestRestartCluster#testClusterRestart (#2401)

Signed-off-by: Viraj Jasani <vjasani@apache.org>
This commit is contained in:
Reid Chan 2020-09-28 13:59:28 +08:00 committed by GitHub
parent 982aa33cda
commit ccb4e8907c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -129,6 +129,7 @@ public class TestRestartCluster {
// Need to use a new 'Configuration' so we make a new HConnection.
// Otherwise we're reusing an HConnection that has gone stale because
// the shutdown of the cluster also called shut of the connection.
connection = UTIL.getConnection();
allRegions =
MetaScanner.listAllRegions(new Configuration(UTIL.getConfiguration()), connection, true);
assertEquals(4, allRegions.size());