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 2024/02/11 06:25:00 UTC

[jira] [Updated] (HDFS-14999) Avoid Potential Infinite Loop in DFSNetworkTopology

     [ https://issues.apache.org/jira/browse/HDFS-14999?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Shilun Fan updated HDFS-14999:
------------------------------
          Component/s: dfs
     Target Version/s: 3.3.1, 3.4.0
    Affects Version/s: 3.3.1
                       3.4.0

> Avoid Potential Infinite Loop in DFSNetworkTopology
> ---------------------------------------------------
>
>                 Key: HDFS-14999
>                 URL: https://issues.apache.org/jira/browse/HDFS-14999
>             Project: Hadoop HDFS
>          Issue Type: Improvement
>          Components: dfs
>    Affects Versions: 3.3.1, 3.4.0
>            Reporter: Ayush Saxena
>            Assignee: Ayush Saxena
>            Priority: Major
>             Fix For: 3.3.1, 3.4.0
>
>         Attachments: HDFS-14999-01.patch
>
>
> {code:java}
>     do {
>       chosen = chooseRandomWithStorageTypeAndExcludeRoot(root, excludeRoot,
>           type);
>       if (excludedNodes == null || !excludedNodes.contains(chosen)) {
>         break;
>       } else {
>         LOG.debug("Node {} is excluded, continuing.", chosen);
>       }
>     } while (true);
> {code}
> Observed this loop getting stuck as part of testing HDFS-14913.
> There should be some exit condition or max retries here



--
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