Hadoop Common
  1. Hadoop Common
  2. HADOOP-3329

DatanodeDescriptor objects stored in FSImage may be out dated.

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 0.18.0
    • Component/s: None
    • Labels:
      None
    • Hadoop Flags:
      Incompatible change, Reviewed
    • Release Note:
      Changed format of file system image to not store locations of last block.

      Description

      INodeFileUnderConstruction.targets is a DatanodeDescriptor array which stores the locations for last block. These DatanodeDescriptors are serialized and stored in the FSImage. However, a DatanodeDescriptor contains information like IP address and ports. These information may be out dated after a datanode restart.

      We should probably only stored the storageID of a DatanodeDescriptor in FSImage and then lookup the DatanodeDescriptor object from the datanodeMap.

        Issue Links

          Activity

          Owen O'Malley made changes -
          Component/s dfs [ 12310710 ]
          Nigel Daley made changes -
          Status Resolved [ 5 ] Closed [ 6 ]
          Robert Chansler made changes -
          Release Note The file system image file does not store block locations of the last block of a file. Changed format of file system image to not store locations of last block.
          Hadoop Flags [Reviewed, Incompatible change] [Incompatible change, Reviewed]
          dhruba borthakur made changes -
          Status Patch Available [ 10002 ] Resolved [ 5 ]
          Release Note The file system image file does not store block locations of the last block of a file.
          Hadoop Flags [Incompatible change, Reviewed]
          Resolution Fixed [ 1 ]
          dhruba borthakur made changes -
          Status Open [ 1 ] Patch Available [ 10002 ]
          Fix Version/s 0.18.0 [ 12312972 ]
          dhruba borthakur made changes -
          Attachment lastBlockLocations.patch [ 12381486 ]
          dhruba borthakur made changes -
          Assignee dhruba borthakur [ dhruba ]
          Tsz Wo Nicholas Sze made changes -
          Link This issue is related to HADOOP-3337 [ HADOOP-3337 ]
          Tsz Wo Nicholas Sze made changes -
          Field Original Value New Value
          Link This issue is related to HADOOP-1700 [ HADOOP-1700 ]
          Tsz Wo Nicholas Sze created issue -

            People

            • Assignee:
              dhruba borthakur
              Reporter:
              Tsz Wo Nicholas Sze
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development