Uploaded image for project: 'Hadoop Common'
  1. Hadoop Common
  2. HADOOP-12772

NetworkTopologyWithNodeGroup.getNodeGroup() can loop infinitely for invalid 'loc' values

Log workAgile BoardRank to TopRank to BottomAttach filesAttach ScreenshotBulk Copy AttachmentsBulk Move AttachmentsVotersWatch issueWatchersCreate sub-taskConvert to sub-taskMoveLinkCloneLabelsUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 2.7.2
    • 2.8.0, 2.7.3, 3.0.0-alpha1
    • None
    • None
    • Reviewed

    Description

      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.

      Attachments

        1. HDFS-9762.003.patch
          3 kB
          Kuhu Shukla
        2. HDFS-9762.002.patch
          5 kB
          Kuhu Shukla
        3. HDFS-9762.001.patch
          3 kB
          Kuhu Shukla

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            kshukla Kuhu Shukla Assign to me
            kshukla Kuhu Shukla
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment