Skip to content

Commit

Permalink
HBASE-22207 Fix flakey TestAssignmentManager.testAssignSocketTimeout
Browse files Browse the repository at this point in the history
  • Loading branch information
Apache9 committed Apr 12, 2019
1 parent bc58ada commit f7867c4
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,9 @@ public void testAssignSocketTimeout() throws Exception {
rsDispatcher.setMockRsExecutor(new SocketTimeoutRsExecutor(20));
waitOnFuture(submitProcedure(createAssignProcedure(hri)));

assertEquals(assignSubmittedCount + 1, assignProcMetrics.getSubmittedCounter().getCount());
// we crashed a rs, so it is possible that there are other regions on the rs which will also be
// reassigned, so here we just assert greater than, not the exact number.
assertTrue(assignProcMetrics.getSubmittedCounter().getCount() > assignSubmittedCount);
assertEquals(assignFailedCount, assignProcMetrics.getFailedCounter().getCount());
}

Expand Down

0 comments on commit f7867c4

Please sign in to comment.