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

Bytes map encoding does not match protocol spec

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Normal
    • Resolution: Fixed
    • 2.2.0 rc1
    • Legacy/CQL
    • None

    Description

      In native_protocol_v4.spec, [bytes map] is defined as having [bytes] values, where [bytes] is an int n followed by n bytes.

      In practice, CBUtil#writeBytesMap encodes each value with CBUtil#writeBytes, which writes the length as a short (so a [short bytes] instead of a [bytes]).

      This is used for the custom payload introduced by CASSANDRA-8553.

      Attachments

        1. 9515.txt
          25 kB
          Benjamin Lerer

        Issue Links

          Activity

            People

              blerer Benjamin Lerer
              omichallat Olivier Michallat
              Benjamin Lerer
              Sylvain Lebresne
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: