hbase-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jmhs...@apache.org
Subject svn commit: r1549683 - /hbase/trunk/hbase-server/src/main/java/org/apache/hadoop/hbase/tool/Canary.java
Date Mon, 09 Dec 2013 21:16:01 GMT
Author: jmhsieh
Date: Mon Dec  9 21:16:01 2013
New Revision: 1549683

URL: http://svn.apache.org/r1549683
Log:
HBASE-10108 NullPointerException thrown while using Canary with '-regionserver' option (Takeshi
Miao)

Modified:
    hbase/trunk/hbase-server/src/main/java/org/apache/hadoop/hbase/tool/Canary.java

Modified: hbase/trunk/hbase-server/src/main/java/org/apache/hadoop/hbase/tool/Canary.java
URL: http://svn.apache.org/viewvc/hbase/trunk/hbase-server/src/main/java/org/apache/hadoop/hbase/tool/Canary.java?rev=1549683&r1=1549682&r2=1549683&view=diff
==============================================================================
--- hbase/trunk/hbase-server/src/main/java/org/apache/hadoop/hbase/tool/Canary.java (original)
+++ hbase/trunk/hbase-server/src/main/java/org/apache/hadoop/hbase/tool/Canary.java Mon Dec
 9 21:16:01 2013
@@ -568,6 +568,8 @@ public final class Canary implements Too
         return false;
       }
 
+      if (this.targets == null || this.targets.length == 0) return true;
+
       for (String target : this.targets) {
         for (TableName tableName : tableNames) {
           if (target.equals(tableName.getNameAsString())) {



Mime
View raw message