[jira] [Updated] (HDFS-14148) HDFS OIV ReverseXML SnapshotSection parser throws exception when there are more than one snapshottable directory
[ https://issues.apache.org/jira/browse/HDFS-14148?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Wei-Chiu Chuang updated HDFS-14148: --- Fix Version/s: 3.1.3 3.2.1 > HDFS OIV ReverseXML SnapshotSection parser throws exception when there are > more than one snapshottable directory > > > Key: HDFS-14148 > URL: https://issues.apache.org/jira/browse/HDFS-14148 > Project: Hadoop HDFS > Issue Type: Bug > Components: hdfs >Affects Versions: 3.0.0 >Reporter: Siyao Meng >Assignee: Siyao Meng >Priority: Major > Fix For: 3.3.0, 3.2.1, 3.1.3 > > Attachments: HDFS-14148.test.001.patch, fsimage_024, > fsimage_441 > > > The current HDFS OIV tool doesn't seem to support snapshot well when > reversing XML back to binary. > {code:bash} > $ hdfs oiv -i fsimage_0026542.xml -o reverse.bin -p ReverseXML > OfflineImageReconstructor failed: Found unknown XML keys in : dir > java.io.IOException: Found unknown XML keys in : dir > at > org.apache.hadoop.hdfs.tools.offlineImageViewer.OfflineImageReconstructor$Node.verifyNoRemainingKeys(OfflineImageReconstructor.java:324) > at > org.apache.hadoop.hdfs.tools.offlineImageViewer.OfflineImageReconstructor$SnapshotSectionProcessor.process(OfflineImageReconstructor.java:1357) > at > org.apache.hadoop.hdfs.tools.offlineImageViewer.OfflineImageReconstructor.processXml(OfflineImageReconstructor.java:1785) > at > org.apache.hadoop.hdfs.tools.offlineImageViewer.OfflineImageReconstructor.run(OfflineImageReconstructor.java:1840) > at > org.apache.hadoop.hdfs.tools.offlineImageViewer.OfflineImageViewerPB.run(OfflineImageViewerPB.java:193) > at > org.apache.hadoop.hdfs.tools.offlineImageViewer.OfflineImageViewerPB.main(OfflineImageViewerPB.java:136) > $ grep -n "" fsimage_0026542.xml > 228:222049220495 > {code} > This is also reproduced on latest trunk > fba222a85603d6321419aa37bcc48d276dd6c4a6 > This problem can be easily reproduced when there are at least TWO > snapshot-enabled directories. Apply HDFS-14148.test.001.patch and run > *TestOfflineImageViewer#testReverseXmlRoundTrip()* to see my point. -- This message was sent by Atlassian JIRA (v7.6.14#76016) - To unsubscribe, e-mail: hdfs-issues-unsubscr...@hadoop.apache.org For additional commands, e-mail: hdfs-issues-h...@hadoop.apache.org
[jira] [Updated] (HDFS-14148) HDFS OIV ReverseXML SnapshotSection parser throws exception when there are more than one snapshottable directory
[ https://issues.apache.org/jira/browse/HDFS-14148?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Siyao Meng updated HDFS-14148: -- Summary: HDFS OIV ReverseXML SnapshotSection parser throws exception when there are more than one snapshottable directory (was: HDFS OIV ReverseXML SnapshotSection parser would throw exception when there are >= 2 snapshottable directories) > HDFS OIV ReverseXML SnapshotSection parser throws exception when there are > more than one snapshottable directory > > > Key: HDFS-14148 > URL: https://issues.apache.org/jira/browse/HDFS-14148 > Project: Hadoop HDFS > Issue Type: Bug > Components: hdfs >Affects Versions: 3.0.0 >Reporter: Siyao Meng >Assignee: Siyao Meng >Priority: Major > Attachments: HDFS-14148.test.001.patch, fsimage_024, > fsimage_441 > > > The current HDFS OIV tool doesn't seem to support snapshot well when > reversing XML back to binary. > {code:bash} > $ hdfs oiv -i fsimage_0026542.xml -o reverse.bin -p ReverseXML > OfflineImageReconstructor failed: Found unknown XML keys in : dir > java.io.IOException: Found unknown XML keys in : dir > at > org.apache.hadoop.hdfs.tools.offlineImageViewer.OfflineImageReconstructor$Node.verifyNoRemainingKeys(OfflineImageReconstructor.java:324) > at > org.apache.hadoop.hdfs.tools.offlineImageViewer.OfflineImageReconstructor$SnapshotSectionProcessor.process(OfflineImageReconstructor.java:1357) > at > org.apache.hadoop.hdfs.tools.offlineImageViewer.OfflineImageReconstructor.processXml(OfflineImageReconstructor.java:1785) > at > org.apache.hadoop.hdfs.tools.offlineImageViewer.OfflineImageReconstructor.run(OfflineImageReconstructor.java:1840) > at > org.apache.hadoop.hdfs.tools.offlineImageViewer.OfflineImageViewerPB.run(OfflineImageViewerPB.java:193) > at > org.apache.hadoop.hdfs.tools.offlineImageViewer.OfflineImageViewerPB.main(OfflineImageViewerPB.java:136) > $ grep -n "" fsimage_0026542.xml > 228:222049220495 > {code} > This is also reproduced on latest trunk > fba222a85603d6321419aa37bcc48d276dd6c4a6 > This problem can be easily reproduced when there are at least TWO > snapshot-enabled directories. Apply HDFS-14148.test.001.patch and run > *TestOfflineImageViewer#testReverseXmlRoundTrip()* to see my point. -- This message was sent by Atlassian JIRA (v7.6.14#76016) - To unsubscribe, e-mail: hdfs-issues-unsubscr...@hadoop.apache.org For additional commands, e-mail: hdfs-issues-h...@hadoop.apache.org