HDFS-11378. Addendum to fix branch-2 compilation. Verify multiple DataNodes can be decommissioned/maintenance at the same time. (Manoj Govindassamy via kasha)
This commit is contained in:
parent
34f9ceab4a
commit
8b01d5cbba
|
@ -1120,10 +1120,10 @@ public class TestDecommission extends AdminStatesBaseTest {
|
||||||
final FileSystem fileSys = getCluster().getFileSystem(0);
|
final FileSystem fileSys = getCluster().getFileSystem(0);
|
||||||
final FSNamesystem ns = getCluster().getNamesystem(0);
|
final FSNamesystem ns = getCluster().getNamesystem(0);
|
||||||
|
|
||||||
int repl = 3;
|
final int repl = 3;
|
||||||
writeFile(fileSys, file, repl, 1);
|
writeFile(fileSys, file, repl, 1);
|
||||||
// Request Decommission for DataNodes 1 and 2.
|
// 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(),
|
Lists.newArrayList(getCluster().getDataNodes().get(0).getDatanodeUuid(),
|
||||||
getCluster().getDataNodes().get(1).getDatanodeUuid()),
|
getCluster().getDataNodes().get(1).getDatanodeUuid()),
|
||||||
Long.MAX_VALUE, null, null, AdminStates.DECOMMISSIONED);
|
Long.MAX_VALUE, null, null, AdminStates.DECOMMISSIONED);
|
||||||
|
|
Loading…
Reference in New Issue