alexdongli0829 commented on code in PR #7231:
URL: https://github.com/apache/hbase/pull/7231#discussion_r2302447076


##########
hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/HRegion.java:
##########
@@ -5829,7 +5829,7 @@ private long replayRecoveredEdits(final Path edits, 
Map<byte[], Long> maxSeqIdIn
         }
       } catch (EOFException eof) {
         if (!conf.getBoolean(RECOVERED_EDITS_IGNORE_EOF, false)) {
-          Path p = WALSplitUtil.moveAsideBadEditsFile(walFS, edits);
+          Path p = WALSplitUtil.moveAsideBadEditsFile(getWalFileSystem(), 
edits);

Review Comment:
   @Apache9 Thanks for reviewing, I had similar thought but did not use it 
because the fs and walFS maybe different when there was 
SPECIAL_RECOVERED_EDITS_DIR set, so I keep the old logic because we may want to 
move aside the corrupt file into walFS from old special dir? If there was no 
this consideration, yes, using fs is more straightforward. 



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

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to