hbase-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ecl...@apache.org
Subject hbase git commit: HBASE-12550 ADDENDUM Check all storefiles are referenced before splitting
Date Mon, 24 Nov 2014 18:29:57 GMT
Repository: hbase
Updated Branches:
  refs/heads/0.98 860ddd2c2 -> db73050a6


HBASE-12550 ADDENDUM Check all storefiles are referenced before splitting


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

Branch: refs/heads/0.98
Commit: db73050a678de6e50fec5fc413591ea1bac53cf1
Parents: 860ddd2
Author: Elliott Clark <elliott@fb.com>
Authored: Mon Nov 24 10:27:43 2014 -0800
Committer: Elliott Clark <elliott@fb.com>
Committed: Mon Nov 24 10:27:43 2014 -0800

----------------------------------------------------------------------
 .../src/main/java/org/apache/hadoop/hbase/util/FSUtils.java      | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hbase/blob/db73050a/hbase-server/src/main/java/org/apache/hadoop/hbase/util/FSUtils.java
----------------------------------------------------------------------
diff --git a/hbase-server/src/main/java/org/apache/hadoop/hbase/util/FSUtils.java b/hbase-server/src/main/java/org/apache/hadoop/hbase/util/FSUtils.java
index 916d567..81c7679 100644
--- a/hbase-server/src/main/java/org/apache/hadoop/hbase/util/FSUtils.java
+++ b/hbase-server/src/main/java/org/apache/hadoop/hbase/util/FSUtils.java
@@ -1445,7 +1445,7 @@ public abstract class FSUtils {
     public boolean accept(Path rd) {
       try {
         // only files
-        return !fs.getFileStatus(rd).isDirectory() && StoreFileInfo.isHFile(rd);
+        return !fs.getFileStatus(rd).isDir() && StoreFileInfo.isHFile(rd);
       } catch (IOException ioe) {
         // Maybe the file was moved or the fs was disconnected.
         LOG.warn("Skipping file " + rd +" due to IOException", ioe);
@@ -1466,7 +1466,7 @@ public abstract class FSUtils {
     public boolean accept(Path rd) {
       try {
         // only files can be references.
-        return !fs.getFileStatus(rd).isDirectory() && StoreFileInfo.isReference(rd);
+        return !fs.getFileStatus(rd).isDir() && StoreFileInfo.isReference(rd);
       } catch (IOException ioe) {
         // Maybe the file was moved or the fs was disconnected.
         LOG.warn("Skipping file " + rd +" due to IOException", ioe);


Mime
View raw message