HDFS-6078. Merging r1575559 from trunk to branch-2.

git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/branches/branch-2@1575561 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Arpit Agarwal 2014-03-08 16:40:27 +00:00
parent d220391721
commit 03f20f77e1
2 changed files with 4 additions and 1 deletions

View File

@ -332,6 +332,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));