Skip to content

Commit 2925348

Browse files
committed
Fix testAllDatanodesReconfig UT failed
1 parent a3007b0 commit 2925348

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
@@ -1252,6 +1252,7 @@ public void testAllDatanodesReconfig()
12521252
any(Configuration.class))).thenReturn(changes);
12531253

12541254
int result = admin.startReconfiguration("datanode", "livenodes");
1255+
Thread.sleep(1000);
12551256
assertThat(result).isEqualTo(0);
12561257
final List<String> outsForStartReconf = new ArrayList<>();
12571258
final List<String> errsForStartReconf = new ArrayList<>();

0 commit comments

Comments
 (0)