HBASE-25156 TestMasterFailover.testSimpleMasterFailover is flaky (ADDENDUM) (#2529)

Signed-off-by: Duo Zhang <zhangduo@apache.org>
This commit is contained in:
Nick Dimiduk 2020-10-11 06:52:11 -07:00 committed by GitHub
parent 5a474449c1
commit c8c860c906
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -129,7 +129,7 @@ public class TestMasterFailover {
// wait for the active master to acknowledge loss of the backup from ZK // wait for the active master to acknowledge loss of the backup from ZK
final HMaster activeFinal = active; final HMaster activeFinal = active;
TEST_UTIL.waitFor( TEST_UTIL.waitFor(
TimeUnit.SECONDS.toMillis(30), () -> activeFinal.getBackupMasters().size() == 1); TimeUnit.MINUTES.toMillis(5), () -> activeFinal.getBackupMasters().size() == 1);
// Check that ClusterStatus reports the correct active and backup masters // Check that ClusterStatus reports the correct active and backup masters
assertNotNull(active); assertNotNull(active);