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

indexed writes fail with exception

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Normal
    • Resolution: Fixed
    • 0.7 beta 2
    • None
    • None
    • Normal

    Description

      Indexed writes fail with an ArrayIndexOutOfBoundsException depending on the length of the key:

      java.lang.RuntimeException: java.lang.ArrayIndexOutOfBoundsException: -95
      	at org.apache.cassandra.utils.WrappedRunnable.run(WrappedRunnable.java:34)
      	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
      	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
      	at java.lang.Thread.run(Thread.java:636)
      Caused by: java.lang.ArrayIndexOutOfBoundsException: -95
      	at org.apache.cassandra.db.Table.apply(Table.java:379)
      	at org.apache.cassandra.db.RowMutation.apply(RowMutation.java:196)
      	at org.apache.cassandra.service.StorageProxy$1.runMayThrow(StorageProxy.java:194)
      	at org.apache.cassandra.utils.WrappedRunnable.run(WrappedRunnable.java:30)
      	... 3 more
      

      The patch that follows updates ColumnFamilyStoreTest to demonstrate.

      Attachments

        Activity

          People

            jbellis Jonathan Ellis
            urandom Eric Evans
            Jonathan Ellis
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: