HDFS-7444. Addendum patch to resolve conflicts between HDFS-7444 and HDFS-7310.
This commit is contained in:
parent
f5b1631179
commit
978736d486
@ -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()))
|
||||
|
Loading…
Reference in New Issue
Block a user