From ee214cbe405310e9f406e390c65cbfc68f7be00a Mon Sep 17 00:00:00 2001 From: stack Date: Sun, 16 Dec 2018 14:15:00 -0800 Subject: [PATCH] HBASE-21589 TestCleanupMetaWAL fails --- .../hadoop/hbase/regionserver/TestCleanupMetaWAL.java | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/hbase-server/src/test/java/org/apache/hadoop/hbase/regionserver/TestCleanupMetaWAL.java b/hbase-server/src/test/java/org/apache/hadoop/hbase/regionserver/TestCleanupMetaWAL.java index 4a723c0fb69..03b3316c4f6 100644 --- a/hbase-server/src/test/java/org/apache/hadoop/hbase/regionserver/TestCleanupMetaWAL.java +++ b/hbase-server/src/test/java/org/apache/hadoop/hbase/regionserver/TestCleanupMetaWAL.java @@ -66,10 +66,13 @@ public class TestCleanupMetaWAL { .getRegionServer(TEST_UTIL.getMiniHBaseCluster().getServerWithMeta()); TEST_UTIL.getAdmin() .move(RegionInfoBuilder.FIRST_META_REGIONINFO.getEncodedNameAsBytes(), null); + LOG.info("KILL"); TEST_UTIL.getMiniHBaseCluster().killRegionServer(serverWithMeta.getServerName()); - TEST_UTIL.waitFor(10000, () -> + LOG.info("WAIT"); + TEST_UTIL.waitFor(30000, () -> TEST_UTIL.getMiniHBaseCluster().getMaster().getProcedures().stream() .filter(p -> p instanceof ServerCrashProcedure && p.isFinished()).count() > 0); + LOG.info("DONE WAITING"); MasterFileSystem fs = TEST_UTIL.getMiniHBaseCluster().getMaster().getMasterFileSystem(); Path walPath = new Path(fs.getWALRootDir(), HConstants.HREGION_LOGDIR_NAME); for (FileStatus status : FSUtils.listStatus(fs.getFileSystem(), walPath)) { @@ -77,7 +80,5 @@ public class TestCleanupMetaWAL { fail("Should not have splitting wal dir here:" + status); } } - - } }