Uploaded image for project: 'Apache Cassandra'
  1. Apache Cassandra
  2. CASSANDRA-8007

sstableloader throws exceptions when used with '-cph'

    XMLWordPrintableJSON

Details

    • 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.

      Attachments

        1. 8007-2.1.txt
          1 kB
          Yuki Morishita

        Activity

          People

            yukim Yuki Morishita
            yukim Yuki Morishita
            Yuki Morishita
            Joshua McKenzie
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: