Skip to content

Commit 39e81f4

Browse files
committed
Fix TestDFSAdmin#testAllDatanodesReconfig fails
1 parent ecba359 commit 39e81f4

File tree

1 file changed

+1
-0
lines changed
  • hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/tools

1 file changed

+1
-0
lines changed

hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/tools/TestDFSAdmin.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1250,6 +1250,7 @@ public void testAllDatanodesReconfig()
12501250
any(Configuration.class))).thenReturn(changes);
12511251

12521252
int result = admin.startReconfiguration("datanode", "livenodes");
1253+
Thread.sleep(50);
12531254
assertThat(result).isEqualTo(0);
12541255
final List<String> outsForStartReconf = new ArrayList<>();
12551256
final List<String> errsForStartReconf = new ArrayList<>();

0 commit comments

Comments
 (0)