ninja fix rethrow InterruptedException in cassandra-stress Timing.snap

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

Branch: refs/heads/trunk
Commit: a6678a273d61b4db54e0b7afeeab8b1b0f7d82a1
Parents: eea042b
Author: Benedict Elliott Smith <bened...@apache.org>
Authored: Sun Sep 14 13:50:38 2014 +0100
Committer: Benedict Elliott Smith <bened...@apache.org>
Committed: Sun Sep 14 13:50:38 2014 +0100

----------------------------------------------------------------------
 tools/stress/src/org/apache/cassandra/stress/util/Timing.java | 2 ++
 1 file changed, 2 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cassandra/blob/a6678a27/tools/stress/src/org/apache/cassandra/stress/util/Timing.java
----------------------------------------------------------------------
diff --git a/tools/stress/src/org/apache/cassandra/stress/util/Timing.java 
b/tools/stress/src/org/apache/cassandra/stress/util/Timing.java
index f64a40b..9a5fa56 100644
--- a/tools/stress/src/org/apache/cassandra/stress/util/Timing.java
+++ b/tools/stress/src/org/apache/cassandra/stress/util/Timing.java
@@ -73,6 +73,8 @@ public class Timing
         }
         catch (Exception e)
         {
+            if (e instanceof InterruptedException)
+                throw (InterruptedException) e;
             throw new RuntimeException(e);
         }
 

Reply via email to