hbase-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rajeshb...@apache.org
Subject svn commit: r1528331 - /hbase/branches/0.96/hbase-server/src/main/java/org/apache/hadoop/hbase/util/ZKDataMigrator.java
Date Wed, 02 Oct 2013 07:51:33 GMT
Author: rajeshbabu
Date: Wed Oct  2 07:51:33 2013
New Revision: 1528331

URL: http://svn.apache.org/r1528331
Log:
HBASE-9697 ZKDataMigrator should exit on table(s) null check.

Modified:
    hbase/branches/0.96/hbase-server/src/main/java/org/apache/hadoop/hbase/util/ZKDataMigrator.java

Modified: hbase/branches/0.96/hbase-server/src/main/java/org/apache/hadoop/hbase/util/ZKDataMigrator.java
URL: http://svn.apache.org/viewvc/hbase/branches/0.96/hbase-server/src/main/java/org/apache/hadoop/hbase/util/ZKDataMigrator.java?rev=1528331&r1=1528330&r2=1528331&view=diff
==============================================================================
--- hbase/branches/0.96/hbase-server/src/main/java/org/apache/hadoop/hbase/util/ZKDataMigrator.java
(original)
+++ hbase/branches/0.96/hbase-server/src/main/java/org/apache/hadoop/hbase/util/ZKDataMigrator.java
Wed Oct  2 07:51:33 2013
@@ -135,6 +135,7 @@ public class ZKDataMigrator extends Conf
     List<String> tables = ZKUtil.listChildrenNoWatch(zkw, zkw.tableZNode);
     if (tables == null) {
       LOG.info("No table present to migrate table state to PB. returning..");
+      return;
     }
     for (String table : tables) {
       String znode = ZKUtil.joinZNode(zkw.tableZNode, table);
@@ -159,6 +160,7 @@ public class ZKDataMigrator extends Conf
     List<String> replicationZnodes = ZKUtil.listChildrenNoWatch(zkw, replicationPath);
     if (replicationZnodes == null) {
       LOG.info("No replication related znodes present to migrate. returning..");
+      return;
     }
     for (String child : replicationZnodes) {
       String znode = ZKUtil.joinZNode(replicationPath, child);



Mime
View raw message