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

Bytes map encoding does not match protocol spec

Agile BoardAttach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskConvert to sub-taskMoveLinkCloneLabelsUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    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

        Issue Links

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

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

            Dates

              Created:
              Updated:
              Resolved:

              Issue deployment