wchevreuil commented on a change in pull request #2568:
URL: https://github.com/apache/hbase/pull/2568#discussion_r508578218



##########
File path: 
hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/HRegion.java
##########
@@ -5301,7 +5301,7 @@ private long replayRecoveredEditsForPaths(long 
minSeqIdForTheRegion, FileSystem
 
       long maxSeqId;
       String fileName = edits.getName();
-      maxSeqId = Math.abs(Long.parseLong(fileName));
+      maxSeqId = Math.abs(Long.parseLong(fileName.split("\\.")[0]));

Review comment:
       For files already with the `corrupted` suffix, shouldn't we just skip 
the whole replay attempt from this point onwards? We already know it will not 
work, so we can save some computation.




----------------------------------------------------------------
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


Reply via email to