incubator-blur-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From amccu...@apache.org
Subject git commit: Fixed BLUR-402.
Date Thu, 22 Jan 2015 09:26:38 GMT
Repository: incubator-blur
Updated Branches:
  refs/heads/master 8873f455e -> a9d12888d


Fixed BLUR-402.


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

Branch: refs/heads/master
Commit: a9d12888d43c4ea0d1a92cca21103027ae3c2f2d
Parents: 8873f45
Author: Aaron McCurry <amccurry@gmail.com>
Authored: Thu Jan 22 04:26:38 2015 -0500
Committer: Aaron McCurry <amccurry@gmail.com>
Committed: Thu Jan 22 04:26:38 2015 -0500

----------------------------------------------------------------------
 .../apache/blur/shell/ListTablesCommand.java    | 22 +++++++++++++++-----
 1 file changed, 17 insertions(+), 5 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-blur/blob/a9d12888/blur-shell/src/main/java/org/apache/blur/shell/ListTablesCommand.java
----------------------------------------------------------------------
diff --git a/blur-shell/src/main/java/org/apache/blur/shell/ListTablesCommand.java b/blur-shell/src/main/java/org/apache/blur/shell/ListTablesCommand.java
index 11922d6..495ef0b 100644
--- a/blur-shell/src/main/java/org/apache/blur/shell/ListTablesCommand.java
+++ b/blur-shell/src/main/java/org/apache/blur/shell/ListTablesCommand.java
@@ -36,11 +36,23 @@ public class ListTablesCommand extends Command {
 
     Collections.sort(tableList);
     for (String table : tableList) {
-      TableDescriptor describe = client.describe(table);
-      if (describe.isEnabled()) {
-        out.println("enabled \t-\t" + table);
-      } else {
-        out.println("disabled\t-\t" + table);
+      try {
+        TableDescriptor describe = client.describe(table);
+        if (describe.isEnabled()) {
+          out.println("enabled \t-\t" + table);
+        } else {
+          out.println("disabled\t-\t" + table);
+        }
+      } catch (BlurException ex) {
+        out.println("ERROR   \t-\t" + table);
+        if (Main.debug) {
+          ex.printStackTrace(out);
+        }
+      } catch (TException ex) {
+        out.println("ERROR   \t-\t" + table);
+        if (Main.debug) {
+          ex.printStackTrace(out);
+        }
       }
     }
   }


Mime
View raw message