[
https://issues.apache.org/jira/browse/HDFS-2766?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Aaron T. Myers updated HDFS-2766:
---------------------------------
Attachment: HDFS-2766-HDFS-1623.patch
Here's a patch which adds a test case for this scenario. Pretty awesomely, it
actually works as-expected without any code changes. :)
I also added a nice log message to mention that we're continuing from the
middle of an edits log file.
> HA: test for case where standby partially reads log and then performs
> checkpoint
> --------------------------------------------------------------------------------
>
> Key: HDFS-2766
> URL: https://issues.apache.org/jira/browse/HDFS-2766
> Project: Hadoop HDFS
> Issue Type: Sub-task
> Components: ha, name-node
> Affects Versions: HA branch (HDFS-1623)
> Reporter: Todd Lipcon
> Assignee: Aaron T. Myers
> Attachments: HDFS-2766-HDFS-1623.patch
>
>
> Here's a potential bug case that we don't currently test for:
> - SBN is reading a finalized edits file when NFS disappears halfway through
> (or some intermittent error happens)
> - SBN performs a checkpoint and uploads it to the NN
> - NN receives a checkpoint that doesn't correspond to the end of any log
> segment
> - Both NN and SBN should be able to restart at this point.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira