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

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.0.2-alpha, 3.0.0-alpha1
    • 2.0.3-alpha, 0.23.10
    • datanode
    • 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

            vinayakumarb Vinayakumar B
            vinayakumarb Vinayakumar B
            Votes:
            0 Vote for this issue
            Watchers:
            8 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: