slfan1989 commented on code in PR #7873: URL: https://github.com/apache/hadoop/pull/7873#discussion_r2280666126
########## hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/server/namenode/TestBlockPlacementPolicyRackFaultTolerant.java: ########## @@ -273,12 +273,11 @@ public Boolean get() { LocatedBlocks locatedBlocks = cluster.getFileSystem().getClient().getLocatedBlocks( src, 0, DEFAULT_BLOCK_SIZE); - assertEquals(4, bm.getDatanodeManager(). - getNetworkTopology().getNumOfNonEmptyRacks()); + assertEquals(4, bm.getDatanodeManager().getNetworkTopology().getNumOfNonEmptyRacks()); for (LocatedBlock block : locatedBlocks.getLocatedBlocks()) { BlockPlacementStatus status = bm.getStriptedBlockPlacementPolicy() .verifyBlockPlacement(block.getLocations(), 5); - Assert.assertTrue(status.isPlacementPolicySatisfied()); + Assertions.assertTrue(status.isPlacementPolicySatisfied()); Review Comment: It needs to be imported during the import, just like the above. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: common-issues-unsubscr...@hadoop.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: common-issues-unsubscr...@hadoop.apache.org For additional commands, e-mail: common-issues-h...@hadoop.apache.org