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

Exception during batch_mutate

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Low
    • Resolution: Fixed
    • 0.6
    • None
    • None
    • debian lenny amd64 OpenJDK 64-Bit Server VM (build 1.6.0_0-b11, mixed mode)

    • Low

    Description

      If a batch mutation is sent with deletions referring to a SCF but no SC is specified in the Deletion object, the following traceback is generated:

      ERROR 15:28:16,746 Fatal exception in thread Thread[ROW-MUTATION-STAGE:22,5,main]
      java.lang.RuntimeException: java.lang.ClassCastException: org.apache.cassandra.db.Column cannot be cast to org.apache.cassandra.db.SuperColumn
      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.ClassCastException: org.apache.cassandra.db.Column cannot be cast to org.apache.cassandra.db.SuperColumn
      at org.apache.cassandra.db.SuperColumnSerializer.serialize(SuperColumn.java:300)
      at org.apache.cassandra.db.SuperColumnSerializer.serialize(SuperColumn.java:284)
      at org.apache.cassandra.db.ColumnFamilySerializer.serializeForSSTable(ColumnFamilySerializer.java:87)
      at org.apache.cassandra.db.ColumnFamilySerializer.serialize(ColumnFamilySerializer.java:73)
      at org.apache.cassandra.db.RowMutationSerializer.freezeTheMaps(RowMutation.java:329)
      at org.apache.cassandra.db.RowMutationSerializer.serialize(RowMutation.java:341)
      at org.apache.cassandra.db.RowMutationSerializer.serialize(RowMutation.java:314)
      at org.apache.cassandra.db.RowMutation.getSerializedBuffer(RowMutation.java:270)
      at org.apache.cassandra.db.RowMutation.apply(RowMutation.java:200)
      at org.apache.cassandra.service.StorageProxy$3.runMayThrow(StorageProxy.java:282)
      at org.apache.cassandra.utils.WrappedRunnable.run(WrappedRunnable.java:30)
      ... 3 more

      Attachments

        1. 834.patch
          0.7 kB
          Brandon Williams
        2. 834-test.patch
          1.0 kB
          Brandon Williams
        3. 834-v2.txt
          3 kB
          Jonathan Ellis

        Activity

          People

            jbellis Jonathan Ellis
            brandon.williams Brandon Williams
            Jonathan Ellis
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: