You are viewing a plain text version of this content. The canonical link for it is here.
Posted to hdfs-issues@hadoop.apache.org by "Shilun Fan (Jira)" <ji...@apache.org> on 2026/02/23 06:22:00 UTC

[jira] [Created] (HDFS-17885) Fix TestDFSAdmin.testAllDatanodesReconfig flaky test

Shilun Fan created HDFS-17885:
---------------------------------

             Summary: Fix TestDFSAdmin.testAllDatanodesReconfig flaky test
                 Key: HDFS-17885
                 URL: https://issues.apache.org/jira/browse/HDFS-17885
             Project: Hadoop HDFS
          Issue Type: Bug
          Components: dfsadmin
    Affects Versions: 3.5.0, 3.5.1
            Reporter: Shilun Fan
            Assignee: Shilun Fan


{*}Problem{*}{*}{*}
`TestDFSAdmin.testAllDatanodesReconfig` fails because it invokes reconfiguration twice on the same DataNodes, causing the second invocation to fail with "Another reconfiguration task is running."
 
*Solution*
- Start reconfiguration only once by calling `admin.startReconfigurationUtil()` directly
- Capture output to ByteArrayOutputStream for assertions
- Improve test robustness: use `NUM_DATANODES` constant, stream-based counting instead of fixed positions
- Remove unnecessary `Thread.sleep(1000)`
 
 
 



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: hdfs-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: hdfs-issues-help@hadoop.apache.org