[ 
https://issues.apache.org/jira/browse/CASSANDRA-6965?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Vijay updated CASSANDRA-6965:
-----------------------------

    Attachment: 0001-CASSANDRA-6965.patch

Thanks Yuki, attached is a simple patch with null check. I guess we don't need 
to throttle for the tools across the DC.

> sstableloader fails to stream data
> ----------------------------------
>
>                 Key: CASSANDRA-6965
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-6965
>             Project: Cassandra
>          Issue Type: Bug
>            Reporter: Ryan McGuire
>            Assignee: Vijay
>         Attachments: 0001-CASSANDRA-6965.patch
>
>
> When loading a snapshot via sstableloader I get this NullPointerException:
> {code}
> Established connection to initial hosts
> Opening sstables and calculating sections to stream
> Streaming relevant part of /tmp/tmpmusajE/ks/cf/ks-cf-ka-1-Data.db to 
> [/127.0.0.1]
> Streaming session ID: 276a9d20-b944-11e3-9f60-4191ec2d6f66
> Exception in thread "STREAM-OUT-/127.0.0.1" java.lang.NullPointerException
>       at 
> org.apache.cassandra.streaming.ConnectionHandler$MessageHandler.signalCloseDone(ConnectionHandler.java:249)
>       at 
> org.apache.cassandra.streaming.ConnectionHandler$OutgoingMessageHandler.run(ConnectionHandler.java:375)
>       at java.lang.Thread.run(Thread.java:744)
> {code}
> Which at first I thought meant it was unable to connect, but I do see this in 
> system.log, indicating the connection was successful:
> {code}
> INFO  [STREAM-INIT-/127.0.0.1:55820] 2014-03-31 22:20:12,265 
> StreamResultFuture.java:121 - [Stream #276a9d20-b944-11e3-9f60-4191ec2d6f66] 
> Received streaming plan for Bulk Load
> INFO  [STREAM-IN-/10.13.37.130] 2014-03-31 22:20:12,272 
> StreamResultFuture.java:173 - [Stream #276a9d20-b944-11e3-9f60-4191ec2d6f66] 
> Prepare completed. Receiving 1 files(1726 bytes), sending 0 files(0 bytes)
> INFO  [STREAM-IN-/10.13.37.130] 2014-03-31 22:20:12,280 
> CompressedStreamReader.java:65 - reading file from /10.13.37.130, repairedAt 
> = 0
> {code}
> To reproduce this behaviour, run the 
> [snapshot_test.py:TestSnapshot.test_basic_snapshot 
> dtest|https://github.com/riptano/cassandra-dtest/blob/85692be39cb6b1b5ebc96905834ff7bb174de0bc/snapshot_test.py#L40]
>  on 2.1 HEAD.



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Reply via email to