Skip to content

Commit

Permalink
HBASE-24635 Addendum make test more robust
Browse files Browse the repository at this point in the history
  • Loading branch information
Apache9 committed Jun 27, 2020
1 parent 16a25b7 commit af49b87
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ public void testShutdownOfReplicaHolder() throws Exception {
LOG.debug("Waiting for the replica {} to come up", hrl.getRegion());
TEST_UTIL.waitFor(30000, () -> {
HRegionLocation loc = locator.getRegionLocations(HConstants.EMPTY_START_ROW, true).get(1);
return !loc.getServerName().equals(oldServer);
return loc != null && !loc.getServerName().equals(oldServer);
});
LOG.debug("Replica {} is online on {}, old server is {}", hrl.getRegion(),
locator.getRegionLocations(HConstants.EMPTY_START_ROW, true).get(1).getServerName(),
Expand Down

0 comments on commit af49b87

Please sign in to comment.