You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by "Benjamin Lerer (JIRA)" <ji...@apache.org> on 2015/12/07 15:56:11 UTC

[jira] [Updated] (CASSANDRA-9515) Bytes map encoding does not match protocol spec

     [ https://issues.apache.org/jira/browse/CASSANDRA-9515?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Benjamin Lerer updated CASSANDRA-9515:
--------------------------------------
    Component/s: CQL

> Bytes map encoding does not match protocol spec
> -----------------------------------------------
>
>                 Key: CASSANDRA-9515
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-9515
>             Project: Cassandra
>          Issue Type: Bug
>          Components: CQL
>            Reporter: Olivier Michallat
>            Assignee: Benjamin Lerer
>             Fix For: 2.2.0 rc1
>
>         Attachments: 9515.txt
>
>
> 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.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)