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: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to