[ https://issues.apache.org/jira/browse/HDFS-2797?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Colin Patrick McCabe updated HDFS-2797: --------------------------------------- Attachment: HDFS-2797.001.patch HDFS-2797.001.patch * add a test for the standby becoming active with a partial transaction logged * add clearLimit method to PositionTrackingInputStream * fix skip logic in EditLogFileInputStream. InputStream#skip can skip less than the requested number of bytes. Also, it's prudent to clear any limit set in the PositionTrackingInputStream. It's quite possible for the end of the file to be longer than the maximum transaction length. > HA: Add a test for the standby becoming active after a partial transaction is > logged > ------------------------------------------------------------------------------------ > > Key: HDFS-2797 > URL: https://issues.apache.org/jira/browse/HDFS-2797 > Project: Hadoop HDFS > Issue Type: Test > Components: ha, name-node > Affects Versions: 0.24.0 > Reporter: Aaron T. Myers > Assignee: Colin Patrick McCabe > Attachments: HDFS-2797.001.patch > > > The existing failover tests only cover the case of graceful shutdown. We > should make sure the standby NN can become active even when the final > transaction in an edit log is only partially written to disk. -- 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