[ 
https://issues.apache.org/jira/browse/HDFS-17885?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18060415#comment-18060415
 ] 

ASF GitHub Bot commented on HDFS-17885:
---------------------------------------

cnauroth commented on PR #8269:
URL: https://github.com/apache/hadoop/pull/8269#issuecomment-3946194970

   I merged this to trunk. Thank you @slfan1989 .




> 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
>            Priority: Major
>              Labels: pull-request-available
>
> {*}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