cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Tyler Hobbs (JIRA)" <>
Subject [jira] [Created] (CASSANDRA-6984) NullPointerException in Streaming During Repair
Date Fri, 04 Apr 2014 23:33:17 GMT
Tyler Hobbs created CASSANDRA-6984:

             Summary: NullPointerException in Streaming During Repair
                 Key: CASSANDRA-6984
             Project: Cassandra
          Issue Type: Bug
          Components: Core
            Reporter: Tyler Hobbs
            Assignee: Yuki Morishita

In cassandra-2.0, I can trigger a NullPointerException with a repair.  These steps should
reproduce the issue:
* create a three node ccm cluster (with vnodes)
* start a stress write (I'm using {{tools/bin/cassandra-stress --replication-factor=3 -n 10000000
-k -t 1}})
* stop node3 while stress is running, then wait a minute
* start node 3
* run "ccm node3 repair"

In the logs for node1, I see this:

ERROR [STREAM-OUT-/] 2014-04-04 17:40:08,547 (line 198) Exception
in thread Thread[STREAM-OUT-/,5,main]
        at org.apache.cassandra.streaming.ConnectionHandler$MessageHandler.signalCloseDone(
        at org.apache.cassandra.streaming.ConnectionHandler$

After applying Yuki's suggested patch:
diff --git a/src/java/org/apache/cassandra/streaming/ b/src/java/org/apache/cassandra/streaming/
index 356138b..b06a818 100644
--- a/src/java/org/apache/cassandra/streaming/
+++ b/src/java/org/apache/cassandra/streaming/
@@ -366,7 +366,7 @@ public class ConnectionHandler
                 throw new AssertionError(e);
-            catch (IOException e)
+            catch (Throwable e)

I see a new NPE:
ERROR [STREAM-OUT-/] 2014-04-04 18:12:35,912 (line 420) [Stream
#9b592af0-bc4e-11e3-a6f9-43eb3a328df9] Streaming error occurred
        at org.apache.cassandra.streaming.StreamSession.fileSent(
        at org.apache.cassandra.streaming.messages.OutgoingFileMessage$1.serialize(
        at org.apache.cassandra.streaming.messages.OutgoingFileMessage$1.serialize(
        at org.apache.cassandra.streaming.messages.StreamMessage.serialize(
        at org.apache.cassandra.streaming.ConnectionHandler$OutgoingMessageHandler.sendMessage(
        at org.apache.cassandra.streaming.ConnectionHandler$

This message was sent by Atlassian JIRA

View raw message