[ https://issues.apache.org/jira/browse/HDFS-1936?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Suresh Srinivas updated HDFS-1936: ---------------------------------- Attachment: HDFS-1936.3.patch Changes: # LayoutVersion.java is added to provide: #* Cleaner check instead of comparing layout versions. Every feature that changes layout version is added to the list of features, with the corresponding layout version. In case a layout version does not have immediate predecessor as the ancestor, a different ancestor can be added. #* Only the layout versions starting from -16 is added. One could add all the other layout versions. But that could happen in another jira. #* Changed all the code that compares layout versions, starting from -16, to check if a feature is supported. #* In case of editlogs, there is no need to check for the layout version before processing an opcode. Either the current software understands it or not. # TestDFSUpgraeFromImage now tests upgrade from 0.22 image. I have commented this test. Once the first hudson test runs fine, I will check in the 0.22 image first and then run the hudson tests again. > Updating the layout version from HDFS-1822 causes upgrade problems. > ------------------------------------------------------------------- > > Key: HDFS-1936 > URL: https://issues.apache.org/jira/browse/HDFS-1936 > Project: Hadoop HDFS > Issue Type: Bug > Components: name-node > Affects Versions: 0.22.0, 0.23.0 > Reporter: Suresh Srinivas > Assignee: Suresh Srinivas > Priority: Blocker > Fix For: 0.22.0, 0.23.0 > > Attachments: HDFS-1936.1.patch, HDFS-1936.2.patch, > HDFS-1936.22.patch, HDFS-1936.3.patch, HDFS-1936.trunk.patch, > hadoop-22-dfs-dir.tgz, hdfs-1936-with-testcase.txt > > > In HDFS-1822 and HDFS-1842, the layout versions for 203, 204, 22 and trunk > were changed. Some of the namenode logic that depends on layout version is > broken because of this. Read the comment for more description. -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira