cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From brandonwilli...@apache.org
Subject [11/13] git commit: nodetool doesn't error when ~/.cassandra is inaccessible
Date Wed, 18 Jun 2014 19:19:14 GMT
nodetool doesn't error when ~/.cassandra is inaccessible

Patch by Kirk True, reviewed by brandonwilliams for CASSANDRA-6449


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

Branch: refs/heads/cassandra-2.1
Commit: 7c05b897cbd81769bf5b3b33b53903f31aac09aa
Parents: 590d403
Author: Brandon Williams <brandonwilliams@apache.org>
Authored: Wed Jun 18 14:18:13 2014 -0500
Committer: Brandon Williams <brandonwilliams@apache.org>
Committed: Wed Jun 18 14:18:13 2014 -0500

----------------------------------------------------------------------
 src/java/org/apache/cassandra/tools/NodeTool.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cassandra/blob/7c05b897/src/java/org/apache/cassandra/tools/NodeTool.java
----------------------------------------------------------------------
diff --git a/src/java/org/apache/cassandra/tools/NodeTool.java b/src/java/org/apache/cassandra/tools/NodeTool.java
index 8f2f261..051afe3 100644
--- a/src/java/org/apache/cassandra/tools/NodeTool.java
+++ b/src/java/org/apache/cassandra/tools/NodeTool.java
@@ -192,7 +192,7 @@ public class NodeTool
             SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss,SSS");
             writer.append(sdf.format(new Date())).append(": ").append(cmdLine).append(System.lineSeparator());
         }
-        catch (IOException ioe)
+        catch (IOException | IOError ioe)
         {
             //quietly ignore any errors about not being able to write out history
         }


Mime
View raw message