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

java.lang.ArrayIndexOutOfBoundsException while executing repair on a freshly added node (0.7.0)

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Normal
    • Resolution: Fixed
    • 0.6.10, 0.7.1
    • None
    • None
    • Normal

    Description

      Hi,

      I added a node to the cluster (20 nodes in total) and ran repair on it after a while.

      The repair still runs, but there are errors in the log file (see below).

      Some of the data in the clsuter has been filled with rc-4. The cluster runs on version 0.7.0 (the release linked on the main cassandra web site).

      Any ideas what might cause this?
      (PS. 0.7.0 turns up as unreleased version in Affects Version/s

      INFO [CompactionExecutor:1] 2011-01-10 19:55:20,684 SSTableReader.java (line 158) Opening /hd2/cassandra_md5/data/table_x/table_x-e-4
      INFO [CompactionExecutor:1] 2011-01-10 19:55:20,775 SSTableReader.java (line 158) Opening /hd2/cassandra_md5/data/table_x/table_x_meta-e-14
      ERROR [RequestResponseStage:3] 2011-01-10 19:55:20,856 DebuggableThreadPoolExecutor.java (line 103) Error in ThreadPoolExecutor
      java.lang.ArrayIndexOutOfBoundsException: -1
      at java.util.ArrayList.fastRemove(ArrayList.java:441)
      at java.util.ArrayList.remove(ArrayList.java:424)
      at com.google.common.collect.AbstractMultimap.remove(AbstractMultimap.java:219)
      at com.google.common.collect.ArrayListMultimap.remove(ArrayListMultimap.java:60)
      at org.apache.cassandra.net.MessagingService.responseReceivedFrom(MessagingService.java:436)
      at org.apache.cassandra.net.ResponseVerbHandler.doVerb(ResponseVerbHandler.java:40)
      at org.apache.cassandra.net.MessageDeliveryTask.run(MessageDeliveryTask.java:63)
      at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
      at java.lang.Thread.run(Thread.java:662)
      ERROR [RequestResponseStage:3] 2011-01-10 19:55:20,856 AbstractCassandraDaemon.java (line 91) Fatal exception in thread Thread[RequestResponseStage:3,5,main]
      java.lang.ArrayIndexOutOfBoundsException: -1
      at java.util.ArrayList.fastRemove(ArrayList.java:441)
      at java.util.ArrayList.remove(ArrayList.java:424)
      at com.google.common.collect.AbstractMultimap.remove(AbstractMultimap.java:219)
      at com.google.common.collect.ArrayListMultimap.remove(ArrayListMultimap.java:60)
      at org.apache.cassandra.net.MessagingService.responseReceivedFrom(MessagingService.java:436)
      at org.apache.cassandra.net.ResponseVerbHandler.doVerb(ResponseVerbHandler.java:40)
      at org.apache.cassandra.net.MessageDeliveryTask.run(MessageDeliveryTask.java:63)
      at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
      at java.lang.Thread.run(Thread.java:662)

      Attachments

        1. 1959-v2.txt
          5 kB
          Jonathan Ellis
        2. post-1959-v2-cleanup.patch.txt
          15 kB
          Folke Behrens

        Activity

          People

            jbellis Jonathan Ellis
            tbritz Thibaut
            Jonathan Ellis
            Folke Behrens
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - 4h
                4h
                Remaining:
                Remaining Estimate - 4h
                4h
                Logged:
                Time Spent - Not Specified
                Not Specified