HDFS-7444. Addendum patch to resolve conflicts between HDFS-7444 and HDFS-7310.

This commit is contained in:
Haohui Mai 2014-11-26 10:53:53 -08:00
parent f5b1631179
commit 978736d486

View File

@ -1232,7 +1232,8 @@ public void testAddStoredBlockDoesNotCauseSkippedReplication()
when(storage.getState()).thenReturn(DatanodeStorage.State.NORMAL);
when(storage.getDatanodeDescriptor()).thenReturn(dn);
when(storage.removeBlock(any(BlockInfo.class))).thenReturn(true);
when(storage.addBlock(any(BlockInfo.class))).thenReturn(true);
when(storage.addBlock(any(BlockInfo.class))).thenReturn
(DatanodeStorageInfo.AddBlockResult.ADDED);
ucBlock.addStorage(storage);
when(mbc.setLastBlock((BlockInfo) any(), (DatanodeStorageInfo[]) any()))