Skip to content

Commit

Permalink
Revert "HDFS-16426. Fix nextBlockReportTime when trigger full block r…
Browse files Browse the repository at this point in the history
…eport force (#3887)"

This reverts commit 96dd426.
  • Loading branch information
tasanuma committed Jan 20, 2022
1 parent 96dd426 commit 53c4d89
Showing 1 changed file with 0 additions and 17 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -136,23 +136,6 @@ public void testScheduleNextBlockReport3() {
}
}

/**
* force trigger full block report multi times, the next block report
* must be scheduled in the range (now + BLOCK_REPORT_INTERVAL_SEC).
*/
@Test
public void testScheduleNextBlockReport4() {
for (final long now : getTimestamps()) {
Scheduler scheduler = makeMockScheduler(now);
for (int i = 0; i < getTimestamps().size(); ++i) {
scheduler.forceFullBlockReportNow();
scheduler.scheduleNextBlockReport();
}
assertTrue(scheduler.getNextBlockReportTime() - now >= 0);
assertTrue(scheduler.getNextBlockReportTime() - now <= BLOCK_REPORT_INTERVAL_MS);
}
}

@Test
public void testScheduleHeartbeat() {
for (final long now : getTimestamps()) {
Expand Down

0 comments on commit 53c4d89

Please sign in to comment.