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

BlockPoolSliceStorage#doRollback(..) should use BlockPoolSliceStorage instead of DataStorage to read prev version file.

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.0.2-alpha, 3.0.0-alpha1
    • Fix Version/s: 2.0.3-alpha, 0.23.10
    • Component/s: datanode
    • Labels:
      None

      Description

          // read attributes out of the VERSION file of previous directory
          DataStorage prevInfo = new DataStorage();
          prevInfo.readPreviousVersionProperties(bpSd);

      In the above code snippet BlockPoolSliceStorage instance should be used. other wise rollback results in 'storageType' property missing which will not be there in initial VERSION file.

        Attachments

        1. HDFS-3970.patch
          1 kB
          Vinayakumar B
        2. hdfs-3970-1.patch
          5 kB
          Andrew Wang

          Activity

            People

            • Assignee:
              vinayakumarb Vinayakumar B
              Reporter:
              vinayakumarb Vinayakumar B
            • Votes:
              0 Vote for this issue
              Watchers:
              9 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: