[
https://issues.apache.org/jira/browse/HDFS-3970?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Allen Wittenauer updated HDFS-3970:
-----------------------------------
Fix Version/s: (was: 3.0.0)
> BlockPoolSliceStorage#doRollback(..) should use BlockPoolSliceStorage instead
> of DataStorage to read prev version file.
> -----------------------------------------------------------------------------------------------------------------------
>
> Key: HDFS-3970
> URL: https://issues.apache.org/jira/browse/HDFS-3970
> Project: Hadoop HDFS
> Issue Type: Bug
> Components: datanode
> Affects Versions: 3.0.0, 2.0.2-alpha
> Reporter: Vinayakumar B
> Assignee: Vinayakumar B
> Fix For: 2.0.3-alpha, 0.23.10
>
> Attachments: HDFS-3970.patch, hdfs-3970-1.patch
>
>
> {code} // read attributes out of the VERSION file of previous directory
> DataStorage prevInfo = new DataStorage();
> prevInfo.readPreviousVersionProperties(bpSd);{code}
> 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.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)