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

MessageSerializationPropertyTest fails with bytes should not be empty for type org.apache.cassandra.db.marshal.BytesType

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Normal
    • Resolution: Fixed
    • 4.0-beta3, 4.0
    • Test/unit
    • None

    Description

      Cause was :-
      java.lang.AssertionError: bytes should not be empty for type org.apache.cassandra.db.marshal.BytesType
      	at org.apache.cassandra.db.marshal.AbstractType.writtenLength(AbstractType.java:423)
      	at org.apache.cassandra.db.SinglePartitionReadCommand.selectionSerializedSize(SinglePartitionReadCommand.java:1043)
      	at org.apache.cassandra.db.ReadCommand$Serializer.serializedSize(ReadCommand.java:1038)
      	at org.apache.cassandra.db.ReadCommand$Serializer.serializedSize(ReadCommand.java:909)
      	at org.apache.cassandra.net.Message$Serializer.payloadSize(Message.java:1289)
      	at org.apache.cassandra.net.Message.payloadSize(Message.java:1333)
      	at org.apache.cassandra.net.Message$Serializer.serializePre40(Message.java:917)
      	at org.apache.cassandra.net.Message$Serializer.serialize(Message.java:620)
      	at org.apache.cassandra.net.MessageSerializationPropertyTest.lambda$serializeSizeProperty$0(MessageSerializationPropertyTest.java:73)
      
      Seed was 35361441975355
      

      This is caused by the fact the generators allow empty types.

      Attachments

        Activity

          People

            Bob01 Bon
            dcapwell David Capwell
            Bon
            Caleb Rackliffe, David Capwell, Jon Meredith
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: