zookeeper
zookeeper copied to clipboard
ZOOKEEPER-1621: Delete and skip txn log with incomplete header
Based on the patch by Michi Mutsuzaki.
Modify FileTxnIterator to skip a transaction log file (instead of throwing an IOException) if the header is incomplete.
Comes from #439
very nice - lgtm
Could this be backported to 3.4? We're using Solr cloud 7.6, which comes with Zookeeper 3.4 bundled, and I'm not sure if it would work with 3.5.
@jbequinn Thanks for picking this up. @lvfangmin We might want to add a feature switch to this patch and/or create a "recycle bin"-like folder and moving corrupted txn log files instead of deleting them. What do you think?
@anmolnar agreed, probably add a feature flag and turn this off by default first before we gain confidence.