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

An invalid insert request crashes the C* node

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Normal
    • Resolution: Fixed
    • Fix Version/s: None
    • Component/s: Legacy/CQL
    • Labels:
      None
    • Environment:

      osx, linux, windows, cassandra-driver-core-3.1.0

    • Severity:
      Normal

      Description

      The node crash with a OOM error when it receives an invalid insert including a plain string instead of a List.

      Here is an extract of the log :

      ERROR [Native-Transport-Requests-1] 2016-10-10 15:51:57,096 JVMStabilityInspector.java:141 - JVM state determined to be unstable.  Exiting forcefully due to:
      java.lang.OutOfMemoryError: Java heap space
              at java.util.ArrayList.<init>(ArrayList.java:152) ~[na:1.8.0_60]
              at org.apache.cassandra.serializers.ListSerializer.deserializeForNativeProtocol(ListSerializer.java:87) ~[apache-cassandra-3.9.jar:3.9]
              at org.apache.cassandra.cql3.Lists$Value.fromSerialized(Lists.java:150) ~[apache-cassandra-3.9.jar:3.9]
              at org.apache.cassandra.cql3.Lists$Marker.bind(Lists.java:255) ~[apache-cassandra-3.9.jar:3.9]
              at org.apache.cassandra.cql3.Lists$Setter.execute(Lists.java:308) ~[apache-cassandra-3.9.jar:3.9]
      

      Please find enclosed a unitTest to reproduce the problem.

        Attachments

        1. CrashNode.java
          1 kB
          Jérémi Kurzanski

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                kjeremi Jérémi Kurzanski
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: