diff --git a/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt b/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt index 421b2e4a5a..a36273c3ce 100644 --- a/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt +++ b/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt @@ -697,6 +697,9 @@ Release 2.5.0 - UNRELEASED HDFS-6580. FSNamesystem.mkdirsInt should call the getAuditFileInfo() wrapper. (Zhilei Xu via wheat9) + HDFS-6587. Bug in TestBPOfferService can cause test failure. (Zhilei Xu + via Arpit Agarwal) + BREAKDOWN OF HDFS-2006 SUBTASKS AND RELATED JIRAS HDFS-6299. Protobuf for XAttr and client-side implementation. (Yi Liu via umamahesh) diff --git a/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/server/datanode/TestBPOfferService.java b/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/server/datanode/TestBPOfferService.java index 704d099635..7171c495ab 100644 --- a/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/server/datanode/TestBPOfferService.java +++ b/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/server/datanode/TestBPOfferService.java @@ -435,8 +435,9 @@ private Boolean get(DatanodeProtocolClientSideTranslatorPB mockNN) { } private ReceivedDeletedBlockInfo[] waitForBlockReceived( - ExtendedBlock fakeBlock, - DatanodeProtocolClientSideTranslatorPB mockNN) throws Exception { + final ExtendedBlock fakeBlock, + final DatanodeProtocolClientSideTranslatorPB mockNN) throws Exception { + final String fakeBlockPoolId = fakeBlock.getBlockPoolId(); final ArgumentCaptor captor = ArgumentCaptor.forClass(StorageReceivedDeletedBlocks[].class); GenericTestUtils.waitFor(new Supplier() { @@ -444,9 +445,9 @@ private ReceivedDeletedBlockInfo[] waitForBlockReceived( @Override public Boolean get() { try { - Mockito.verify(mockNN1).blockReceivedAndDeleted( + Mockito.verify(mockNN).blockReceivedAndDeleted( Mockito.anyObject(), - Mockito.eq(FAKE_BPID), + Mockito.eq(fakeBlockPoolId), captor.capture()); return true; } catch (Throwable t) {