HBASE-4797 [availability] skip recovered edits files older than the region has
Review Request #2906 - Created Nov. 21, 2011 and submitted
If there are multiple recovered edits files, I used the file name to find the initial sequence id. After these files are sorted, we can find a file's possible maximum sequence id based on the next file's initial sequence id. If the maximum sequence id is smaller than the current sequence id, the whole recovered edits file is old and ignored.
Added test case to TestHRegion, and all the tests in this test are passed.
Posted (Nov. 21, 2011, 10:47 p.m.)
Very nice patch. In future, would suggest you confine your change just to what you are adding. The white space cleanup is nice but it distracts from your patch. It also bloats it and makes it look intimidating to review (smile). Minor fixups only.
Posted (Nov. 22, 2011, 12:53 a.m.)
Looks good to me. Thanks for fixing the whitespace too (although it made the patch harder to read). You also left some whitespace in testSkipRecoveredEditsReplay. :)