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 03:00:39 GMT
Repository: hbase
Updated Branches:
  refs/heads/master 783e20e1a -> 45d67435a


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

Branch: refs/heads/master
Commit: 45d67435adc9195325bfccc78b7e1a0202a446e5
Parents: 783e20e
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:58:17 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/45d67435/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 2037786..9b95ae7 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
@@ -251,10 +251,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