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

With enableTracing set to true, the unset() method of a BoundStatement for a map type field failed during execution

    XMLWordPrintableJSON

Details

    Description

      After creating bound statement, performing UNSET on collection type (e.g. map), and enabling tracing, request fails on C* side with:

      java.lang.IndexOutOfBoundsException: null
      	at java.base/java.nio.Buffer.checkIndex(Buffer.java:693)
      	at java.base/java.nio.HeapByteBuffer.getInt(HeapByteBuffer.java:406)
      	at org.apache.cassandra.utils.ByteBufferUtil.toInt(ByteBufferUtil.java:476)
      	at org.apache.cassandra.db.marshal.ByteBufferAccessor.toInt(ByteBufferAccessor.java:208)
      	at org.apache.cassandra.db.marshal.ByteBufferAccessor.toInt(ByteBufferAccessor.java:42)
      	at org.apache.cassandra.serializers.CollectionSerializer.readCollectionSize(CollectionSerializer.java:147)
      	at org.apache.cassandra.cql3.CQL3Type$Collection.toCQLLiteral(CQL3Type.java:222)
      	at org.apache.cassandra.transport.messages.ExecuteMessage.traceQuery(ExecuteMessage.java:223)
      	at org.apache.cassandra.transport.messages.ExecuteMessage.execute(ExecuteMessage.java:155)
      	at org.apache.cassandra.transport.Message$Request.execute(Message.java:259)
      	at org.apache.cassandra.transport.Dispatcher.processRequest(Dispatcher.java:416)
      	at org.apache.cassandra.transport.Dispatcher.processRequest(Dispatcher.java:435)
      	at org.apache.cassandra.transport.Dispatcher.processRequest(Dispatcher.java:462)
      	at org.apache.cassandra.transport.Dispatcher$RequestProcessor.run(Dispatcher.java:307)
      	at org.apache.cassandra.concurrent.FutureTask$1.call(FutureTask.java:99)
      	at org.apache.cassandra.concurrent.FutureTask.call(FutureTask.java:61)
      	at org.apache.cassandra.concurrent.FutureTask.run(FutureTask.java:71)
      	at org.apache.cassandra.concurrent.SEPWorker.run(SEPWorker.java:143)
      	at io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30)
      	at java.base/java.lang.Thread.run(Thread.java:829) 

      Attachments

        1. ci_summary.html
          1.02 MB
          Jacek Lewandowski
        2. results_details.tar.xz
          1.52 MB
          Jacek Lewandowski

        Issue Links

          Activity

            People

              lukasz.antoniak Lukasz Antoniak
              jlewandowski Jacek Lewandowski
              Lukasz Antoniak
              Jacek Lewandowski
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: