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

DatanodeManager.sortLocatedBlocks sorts DatanodeInfos but not StorageIDs

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.6.0
    • 2.7.0
    • None
    • None
    • Reviewed

    Description

      DatanodeManager.sortLocatedBlocks() sorts the array of DatanodeInfos inside each LocatedBlock, but does not touch the array of StorageIDs and StorageTypes. As a result, the DatanodeInfos and StorageIDs/StorageTypes are mismatched. The method is called by FSNamesystem.getBlockLocations(), so the client will not know which StorageID/Type corresponds to which DatanodeInfo.

      Attachments

        1. HDFS-7647.patch
          2 kB
          Milan Desai
        2. HDFS-7647-2.patch
          7 kB
          Milan Desai
        3. HDFS-7647-3.patch
          12 kB
          Milan Desai
        4. HDFS-7647-4.patch
          15 kB
          Milan Desai
        5. HDFS-7647-5.patch
          16 kB
          Milan Desai
        6. HDFS-7647-6.patch
          16 kB
          Milan Desai
        7. HDFS-7647-7.patch
          16 kB
          Milan Desai

        Issue Links

          Activity

            People

              milandesai Milan Desai
              milandesai Milan Desai
              Votes:
              0 Vote for this issue
              Watchers:
              9 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: