HDFS-6078. TestIncrementalBlockReports is flaky. (Arpit Agarwal)

git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/trunk@1575559 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Arpit Agarwal 2014-03-08 16:38:36 +00:00
parent e2530de4ea
commit 596004ac73
2 changed files with 4 additions and 1 deletions

View File

@ -727,6 +727,8 @@ Release 2.4.0 - UNRELEASED
HDFS-5064. Standby checkpoints should not block concurrent readers.
(atm via wang)
HDFS-6078. TestIncrementalBlockReports is flaky. (Arpit Agarwal)
BREAKDOWN OF HDFS-5698 SUBTASKS AND RELATED JIRAS
HDFS-5717. Save FSImage header in protobuf. (Haohui Mai via jing9)

View File

@ -20,6 +20,7 @@ package org.apache.hadoop.hdfs.server.datanode;
import static junit.framework.Assert.assertFalse;
import static org.mockito.Matchers.any;
import static org.mockito.Matchers.anyString;
import static org.mockito.Mockito.atLeastOnce;
import static org.mockito.Mockito.times;
import java.io.IOException;
@ -195,7 +196,7 @@ public class TestIncrementalBlockReports {
Thread.sleep(2000);
// Ensure that the received block is reported.
Mockito.verify(nnSpy, times(1)).blockReceivedAndDeleted(
Mockito.verify(nnSpy, atLeastOnce()).blockReceivedAndDeleted(
any(DatanodeRegistration.class),
anyString(),
any(StorageReceivedDeletedBlocks[].class));