Joseph295 commented on a change in pull request #2568: URL: https://github.com/apache/hbase/pull/2568#discussion_r512373857
########## File path: hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/HRegion.java ########## @@ -5301,7 +5301,11 @@ private long replayRecoveredEditsForPaths(long minSeqIdForTheRegion, FileSystem long maxSeqId; String fileName = edits.getName(); - maxSeqId = Math.abs(Long.parseLong(fileName)); + if (isSkipErrorEnabled() && fileName.endsWith(HConstants.HREGION_EDITS_CORRUPTED_SUFFIX)) { Review comment: > recovered.edits have same problem? or problem only for SplitWALToHFile? Can we have UT for this? I checked the code, recovered.edits will be cleared at the beginning, so we don't need UT now? ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org