Uploaded image for project: 'Hadoop HDFS'
  1. Hadoop HDFS
  2. HDFS-15363

BlockPlacementPolicyWithNodeGroup should validate if it is initialized by NetworkTopologyWithNodeGroup

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 3.2.2, 3.3.1, 3.4.0
    • None
    • None

    Description

      BlockPlacementPolicyWithNodeGroup  type casts the initialized  clusterMap 

      NetworkTopologyWithNodeGroup clusterMapNodeGroup =
          (NetworkTopologyWithNodeGroup) clusterMap 

      If clusterMap is an instance of DFSNetworkTopology we get a ClassCastException

      Attachments

        1. HDFS-15363.001.patch
          3 kB
          Hemanth Boyina
        2. HDFS-15363-testrepro.patch
          5 kB
          Hemanth Boyina

        Activity

          People

            hemanthboyina Hemanth Boyina
            hemanthboyina Hemanth Boyina
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: