Details
-
Bug
-
Status: Resolved
-
Low
-
Resolution: Fixed
-
Low
Description
When I use sstableloader with -cph(connections per host) option greater than 1, I get the following exceptions.
java.lang.NullPointerException: null at org.apache.cassandra.io.sstable.SSTableReader$6.run(SSTableReader.java:637) ~[main/:na] at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) ~[na:1.7.0_51] at java.util.concurrent.FutureTask.run(FutureTask.java:262) ~[na:1.7.0_51] at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:178) ~[na:1.7.0_51] at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:292) ~[na:1.7.0_51] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) ~[na:1.7.0_51] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [na:1.7.0_51] at java.lang.Thread.run(Thread.java:744) [na:1.7.0_51]
also,
ERROR 14:33:52 [Stream #218f2470-458a-11e4-a929-cb31cb113424] Streaming error occurred java.lang.AssertionError: Reference counter -1 for /home/yuki/Keyspace1/Standard1-cb5e6f30458811e49349511b628b066f/Keyspace1-Standard1-ka-6-Data.db at org.apache.cassandra.io.sstable.SSTableReader.releaseReference(SSTableReader.java:1597) ~[main/:na] at org.apache.cassandra.streaming.StreamTransferTask.complete(StreamTransferTask.java:68) ~[main/:na] at org.apache.cassandra.streaming.StreamSession.received(StreamSession.java:522) ~[main/:na] at org.apache.cassandra.streaming.StreamSession.messageReceived(StreamSession.java:404) ~[main/:na] at org.apache.cassandra.streaming.ConnectionHandler$IncomingMessageHandler.run(ConnectionHandler.java:295) ~[main/:na] at java.lang.Thread.run(Thread.java:744) [na:1.7.0_51]
Looks like there are conflict in grabbing SSTables to stream.