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:57:22 GMT
Repository: hbase
Updated Branches:
  refs/heads/branch-1.2 cb57ebaa8 -> 05cb05142


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/05cb0514
Tree: http://git-wip-us.apache.org/repos/asf/hbase/tree/05cb0514
Diff: http://git-wip-us.apache.org/repos/asf/hbase/diff/05cb0514

Branch: refs/heads/branch-1.2
Commit: 05cb051423953b913156e4950b67f3d9b28ada5f
Parents: cb57eba
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:55:20 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/05cb0514/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 a706bcf..e648c2e 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
@@ -248,10 +248,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