hbase-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From apurt...@apache.org
Subject [hbase] branch branch-2.1 updated: HBASE-22291 Fix recovery of recovered.edits files under root dir
Date Fri, 26 Apr 2019 01:26:47 GMT
This is an automated email from the ASF dual-hosted git repository.

apurtell pushed a commit to branch branch-2.1
in repository https://gitbox.apache.org/repos/asf/hbase.git


The following commit(s) were added to refs/heads/branch-2.1 by this push:
     new 11843b7  HBASE-22291 Fix recovery of recovered.edits files under root dir
11843b7 is described below

commit 11843b7010bc2e9f347c89a07d07ffff600d9820
Author: Zach York <zyork@apache.org>
AuthorDate: Mon Apr 22 16:34:30 2019 -0700

    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>
---
 .../src/main/java/org/apache/hadoop/hbase/regionserver/HRegion.java     | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/HRegion.java
b/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/HRegion.java
index 7ae5dcc..005a27a 100644
--- a/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/HRegion.java
+++ b/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/HRegion.java
@@ -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);


Mime
View raw message