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

java.lang.NegativeArraySizeException being thrown for large column names

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Normal
    • Resolution: Fixed
    • 0.4, 0.5
    • None
    • None
    • linux

    • Normal

    Description

      When inserting large columns I'm getting this stacktrace in the cassandra log:

      ERROR [ROW-MUTATION-STAGE:3] 2009-09-26 18:57:02,589 DebuggableThreadPoolExecutor.java (line 110) Error in ThreadPoolExecutor
      java.lang.NegativeArraySizeException
      at org.apache.cassandra.db.ColumnSerializer.readName(ColumnSerializer.java:46)
      at org.apache.cassandra.db.SuperColumnSerializer.deserialize(SuperColumn.java:345)
      at org.apache.cassandra.db.SuperColumnSerializer.deserialize(SuperColumn.java:313)
      at org.apache.cassandra.db.ColumnFamilySerializer.deserialize(ColumnFamilySerializer.java:88)
      at org.apache.cassandra.db.RowMutationSerializer.defreezeTheMaps(RowMutation.java:313)
      at org.apache.cassandra.db.RowMutationSerializer.deserialize(RowMutation.java:323)
      at org.apache.cassandra.db.RowMutationSerializer.deserialize(RowMutation.java:276)
      at org.apache.cassandra.db.RowMutationVerbHandler.doVerb(RowMutationVerbHandler.java:59)
      at org.apache.cassandra.net.MessageDeliveryTask.run(MessageDeliveryTask.java:39)
      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:619)
      ERROR [ROW-MUTATION-STAGE:3] 2009-09-26 18:57:02,589 CassandraDaemon.java (line 71) Fatal exception in thread Thread[ROW-MUTATION-STAGE:3,5,main]
      java.lang.NegativeArraySizeException
      at org.apache.cassandra.db.ColumnSerializer.readName(ColumnSerializer.java:46)
      at org.apache.cassandra.db.SuperColumnSerializer.deserialize(SuperColumn.java:345)
      at org.apache.cassandra.db.SuperColumnSerializer.deserialize(SuperColumn.java:313)
      at org.apache.cassandra.db.ColumnFamilySerializer.deserialize(ColumnFamilySerializer.java:88)
      at org.apache.cassandra.db.RowMutationSerializer.defreezeTheMaps(RowMutation.java:313)
      at org.apache.cassandra.db.RowMutationSerializer.deserialize(RowMutation.java:323)
      at org.apache.cassandra.db.RowMutationSerializer.deserialize(RowMutation.java:276)
      at org.apache.cassandra.db.RowMutationVerbHandler.doVerb(RowMutationVerbHandler.java:59)
      at org.apache.cassandra.net.MessageDeliveryTask.run(MessageDeliveryTask.java:39)
      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:619)
      INFO [ROW-MUTATION-STAGE:90] 2009-09-26 18:57:03,183 ColumnFamilyStore.java (line 367) TermVectors has reached its threshold; switching in a fresh Memtable
      INFO [R

      Attachments

        1. 460-2.patch
          6 kB
          Jonathan Ellis
        2. 460.patch
          0.9 kB
          Jonathan Ellis

        Activity

          People

            jbellis Jonathan Ellis
            tjake T Jake Luciani
            Jonathan Ellis
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: