瀏覽代碼

HDFS-11378. Addendum to fix branch-2 compilation. Verify multiple DataNodes can be decommissioned/maintenance at the same time. (Manoj Govindassamy via kasha)

Karthik Kambatla 8 年之前
父節點
當前提交
8b01d5cbba

+ 2 - 2
hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/TestDecommission.java

@@ -1120,10 +1120,10 @@ public class TestDecommission extends AdminStatesBaseTest {
     final FileSystem fileSys = getCluster().getFileSystem(0);
     final FSNamesystem ns = getCluster().getNamesystem(0);
 
-    int repl = 3;
+    final int repl = 3;
     writeFile(fileSys, file, repl, 1);
     // Request Decommission for DataNodes 1 and 2.
-    List<DatanodeInfo> decomDataNodes = takeNodeOutofService(0,
+    final List<DatanodeInfo> decomDataNodes = takeNodeOutofService(0,
         Lists.newArrayList(getCluster().getDataNodes().get(0).getDatanodeUuid(),
             getCluster().getDataNodes().get(1).getDatanodeUuid()),
         Long.MAX_VALUE, null, null, AdminStates.DECOMMISSIONED);