cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Olivier Michallat (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CASSANDRA-9515) Bytes map encoding does not match protocol spec
Date Fri, 29 May 2015 19:50:17 GMT

    [ https://issues.apache.org/jira/browse/CASSANDRA-9515?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14565288#comment-14565288
] 

Olivier Michallat commented on CASSANDRA-9515:
----------------------------------------------

I'm not sure how to set the priority: if this is just a matter of fixing the spec it's trivial,
otherwise it's more serious. [short bytes] is smaller and does not support null values, but
that might be enough for the custom payload.

> 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
>            Reporter: Olivier Michallat
>            Assignee: Robert Stupp
>
> 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)

Mime
View raw message