hbase-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jerry...@apache.org
Subject hbase git commit: Revert: HBASE-14391 Empty regionserver WAL will never be deleted although the coresponding regionserver has been stale
Date Tue, 22 Sep 2015 02:54:32 GMT
Repository: hbase
Updated Branches:
  refs/heads/branch-1.1 242594d0b -> 489dd6427


Revert: HBASE-14391 Empty regionserver WAL will never be deleted although the coresponding
regionserver has been stale


Project: http://git-wip-us.apache.org/repos/asf/hbase/repo
Commit: http://git-wip-us.apache.org/repos/asf/hbase/commit/489dd642
Tree: http://git-wip-us.apache.org/repos/asf/hbase/tree/489dd642
Diff: http://git-wip-us.apache.org/repos/asf/hbase/diff/489dd642

Branch: refs/heads/branch-1.1
Commit: 489dd6427a499d09fb8cde4fbdd46303f0a57b20
Parents: 242594d
Author: Jerry He <jerryjch@apache.org>
Authored: Mon Sep 21 19:34:55 2015 -0700
Committer: Jerry He <jerryjch@apache.org>
Committed: Mon Sep 21 19:37:14 2015 -0700

----------------------------------------------------------------------
 .../java/org/apache/hadoop/hbase/master/MasterFileSystem.java    | 4 ----
 1 file changed, 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hbase/blob/489dd642/hbase-server/src/main/java/org/apache/hadoop/hbase/master/MasterFileSystem.java
----------------------------------------------------------------------
diff --git a/hbase-server/src/main/java/org/apache/hadoop/hbase/master/MasterFileSystem.java
b/hbase-server/src/main/java/org/apache/hadoop/hbase/master/MasterFileSystem.java
index c645135..bd2b8f5 100644
--- a/hbase-server/src/main/java/org/apache/hadoop/hbase/master/MasterFileSystem.java
+++ b/hbase-server/src/main/java/org/apache/hadoop/hbase/master/MasterFileSystem.java
@@ -241,10 +241,6 @@ public class MasterFileSystem {
           FileStatus[] curLogFiles = FSUtils.listStatus(this.fs, status.getPath(), null);
           if (curLogFiles == null || curLogFiles.length == 0) {
             // Empty log folder. No recovery needed
-            // Just delete the directory
-            if (!fs.delete(status.getPath(), false)) {
-              LOG.warn("Unable to delete " + status.getPath());
-            }
             continue;
           }
           final ServerName serverName = DefaultWALProvider.getServerNameFromWALDirectoryName(


Mime
View raw message