HDFS-8595. TestCommitBlockSynchronization fails in branch-2.7. (Patch applies to all branches). (Contributed by Arpit Agarwal)
This commit is contained in:
parent
b0dc291961
commit
4c5da9bd94
|
@ -1005,6 +1005,9 @@ Release 2.7.1 - UNRELEASED
|
|||
HDFS-8596. TestDistributedFileSystem et al tests are broken in branch-2
|
||||
due to incorrect setting of "datanode" attribute. (Yongjun Zhang)
|
||||
|
||||
HDFS-8595. TestCommitBlockSynchronization fails in branch-2.7. (Patch
|
||||
applies to all branches). (Arpit Agarwal)
|
||||
|
||||
Release 2.7.0 - 2015-04-20
|
||||
|
||||
INCOMPATIBLE CHANGES
|
||||
|
|
|
@ -78,6 +78,7 @@ public class TestCommitBlockSynchronization {
|
|||
blockInfo.initializeBlockRecovery(genStamp);
|
||||
doReturn(blockInfo).when(file).removeLastBlock(any(Block.class));
|
||||
doReturn(true).when(file).isUnderConstruction();
|
||||
doReturn(new BlockInfoContiguous[1]).when(file).getBlocks();
|
||||
|
||||
doReturn(blockInfo).when(namesystemSpy).getStoredBlock(any(Block.class));
|
||||
doReturn(blockInfo).when(file).getLastBlock();
|
||||
|
|
Loading…
Reference in New Issue