Skip to content

Commit 90fcf70

Browse files
committed
add javadoc for testAddDatanode2ExistingPipelineInSsd
1 parent 53e9dcb commit 90fcf70

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/TestBlockStoragePolicy.java

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1337,6 +1337,15 @@ public void testChooseSsdOverDisk() throws Exception {
13371337
Assert.assertEquals(StorageType.DISK, targets[1].getStorageType());
13381338
}
13391339

1340+
/**
1341+
* Consider a File with All_SSD storage policy.
1342+
* 1. Choose 3 DISK DNs for pipeline because SSD DNs no enough at
1343+
* the beginning.
1344+
* 2. One of DISK DNs fails And it need choose one new DN for existing.
1345+
* pipeline {@link DataStreamer addDatanode2ExistingPipeline()}.
1346+
* Make sure the number of target DNs are 3.
1347+
* see HDFS-16182.
1348+
*/
13401349
@Test
13411350
public void testAddDatanode2ExistingPipelineInSsd() throws Exception {
13421351
BlockStoragePolicy policy = POLICY_SUITE.getPolicy(ALLSSD);

0 commit comments

Comments
 (0)