[
https://issues.apache.org/jira/browse/HDFS-17885?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18060414#comment-18060414
]
ASF GitHub Bot commented on HDFS-17885:
---------------------------------------
cnauroth closed pull request #8269: HDFS-17885. Fix
TestDFSAdmin.testAllDatanodesReconfig flaky test.
URL: https://github.com/apache/hadoop/pull/8269
> 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]