[ 
https://issues.apache.org/jira/browse/CASSANDRA-6965?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13957207#comment-13957207
 ] 

Yuki Morishita commented on CASSANDRA-6965:
-------------------------------------------

It looks like this is regression from CASSANDRA-6596.

Root stack trace is:
{code}
Exception in thread "STREAM-OUT-/127.0.0.1" java.lang.NullPointerException
        at 
org.apache.cassandra.streaming.StreamManager$StreamRateLimiter.<init>(StreamManager.java:79)
        at 
org.apache.cassandra.streaming.StreamManager.getRateLimiter(StreamManager.java:61)
        at 
org.apache.cassandra.streaming.StreamWriter.<init>(StreamWriter.java:60)
        at 
org.apache.cassandra.streaming.compress.CompressedStreamWriter.<init>(CompressedStreamWriter.java:47)
        at 
org.apache.cassandra.streaming.messages.OutgoingFileMessage$1.serialize(OutgoingFileMessage.java:51)
        at 
org.apache.cassandra.streaming.messages.OutgoingFileMessage$1.serialize(OutgoingFileMessage.java:40)
        at 
org.apache.cassandra.streaming.messages.StreamMessage.serialize(StreamMessage.java:45)
        at 
org.apache.cassandra.streaming.ConnectionHandler$OutgoingMessageHandler.sendMessage(ConnectionHandler.java:389)
        at 
org.apache.cassandra.streaming.ConnectionHandler$OutgoingMessageHandler.run(ConnectionHandler.java:359)
        at java.lang.Thread.run(Thread.java:744)
{code}

Line 79 of StreamManager.java indicates that DC names should be loaded from 
cassandra.yaml file, but in sstableloader cassandra.yaml should not be readed.
[~vijay2...@yahoo.com] can you take a look?

> 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: Yuki Morishita
>
> 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