-
Notifications
You must be signed in to change notification settings - Fork 9.1k
HDFS-16537.Fix oev decode xml error #4160
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: trunk
Are you sure you want to change the base?
Conversation
💔 -1 overall
This message was automatically generated. |
this.timestamp = Long.parseLong(st.getValue("TIMESTAMP")); | ||
if (st.hasChildren("BLOCK")) | ||
this.truncateBlock = FSEditLogOp.blockFromXml(st); | ||
this.truncateBlock = FSEditLogOp.blockFromXml(st.getChildren("BLOCK").get(0)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good catch here. I think it is better to fix it at org.apache.hadoop.hdfs.server.namenode.FSEditLogOp#blockFromXml. Thanks.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
After another review, I think it is proper now. Do you mind to add new unit test to cover this case?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
After another review, I think it is proper now. Do you mind to add new unit test to cover this case?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks @Hexiaoqiao for your review, will add test later
💔 -1 overall
This message was automatically generated. |
JIRA:HDFS-16537