hadoop-hdfs-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Kuhu Shukla (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (HDFS-9762) NetworkTopologyWithNodeGroup.getNodeGroup() can loop infinitely for invalid 'loc' values
Date Fri, 05 Feb 2016 01:06:39 GMT

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

Kuhu Shukla updated HDFS-9762:
------------------------------
    Attachment: HDFS-9762.001.patch

Adding a preliminary patch to get review comments and thoughts on a possible fix. CC: [~kihwal],
[~daryn] [~shahrs87]

> NetworkTopologyWithNodeGroup.getNodeGroup() can loop infinitely for invalid 'loc' values
> ----------------------------------------------------------------------------------------
>
>                 Key: HDFS-9762
>                 URL: https://issues.apache.org/jira/browse/HDFS-9762
>             Project: Hadoop HDFS
>          Issue Type: Improvement
>    Affects Versions: 2.7.2
>            Reporter: Kuhu Shukla
>            Assignee: Kuhu Shukla
>            Priority: Minor
>         Attachments: HDFS-9762.001.patch
>
>
> Although the DatanodInfo/DataNodeDescriptor object tends to have a non-null, non-empty
value for its network location, the getNodeGroup method does not handle the case if an empty
or a null value is passed and can go on recursively causing StackOverflowError. This is an
improvement to check for such a state and error out if the value is null and set the location
to ROOT or empty string and if the original location is empty. 



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message