HBASE-22291 Fix recovery of recovered.edits files under root dir

When trying to recover a recovered.edits file under the root directory,
it is possible to get a WrongFS exception.

Signed-off-by: Andrew Purtell <apurtell@apache.org>
This commit is contained in:
Zach York 2019-04-22 16:34:30 -07:00 committed by Andrew Purtell
parent c7a70dfaba
commit 11843b7010
No known key found for this signature in database
GPG Key ID: 8597754DD5365CCD
1 changed files with 1 additions and 1 deletions

View File

@ -4632,7 +4632,7 @@ public class HRegion implements HeapSize, PropagatingConfigurationObserver, Regi
HConstants.HREGION_EDITS_REPLAY_SKIP_ERRORS + " instead.");
}
if (skipErrors) {
Path p = WALSplitter.moveAsideBadEditsFile(walFS, edits);
Path p = WALSplitter.moveAsideBadEditsFile(fs, edits);
LOG.error(HConstants.HREGION_EDITS_REPLAY_SKIP_ERRORS
+ "=true so continuing. Renamed " + edits +
" as " + p, e);