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

Bytes map encoding does not match protocol spec

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Normal
    • Resolution: Fixed
    • Fix Version/s: 2.2.0 rc1
    • Component/s: Legacy/CQL
    • Labels:
      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

              • Assignee:
                blerer Benjamin Lerer
                Reporter:
                omichallat Olivier Michallat
                Authors:
                Benjamin Lerer
                Reviewers:
                Sylvain Lebresne
              • Votes:
                0 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: