File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed
hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Original file line number Diff line number Diff 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 );
You can’t perform that action at this time.
0 commit comments