Skip to content

Commit

Permalink
HBASE-23658 Fix flaky TestSnapshotFromMaster (#998)
Browse files Browse the repository at this point in the history
Signed-off-by: Duo Zhang <zhangduo@apache.org>
  • Loading branch information
infraio committed Jan 9, 2020
1 parent 9a2a799 commit fbf660c
Showing 1 changed file with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
package org.apache.hadoop.hbase.master.cleaner;

import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertTrue;
import static org.junit.Assert.fail;

Expand Down Expand Up @@ -545,8 +544,6 @@ public void testAsyncSnapshotWillNotBlockSnapshotHFileCleaner() throws Exception
snapshotName, TABLE_NAME, SnapshotType.FLUSH));
Waiter.waitFor(UTIL.getConfiguration(), 10 * 1000L, 200L,
() -> UTIL.getAdmin().listSnapshots(Pattern.compile(snapshotName)).size() == 1);
assertTrue(master.getSnapshotManager().isTakingAnySnapshot());
future.get();
assertFalse(master.getSnapshotManager().isTakingAnySnapshot());
UTIL.waitFor(30000, () -> !master.getSnapshotManager().isTakingAnySnapshot());
}
}

0 comments on commit fbf660c

Please sign in to comment.