cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sylvain Lebresne (JIRA)" <>
Subject [jira] [Commented] (CASSANDRA-9515) Bytes map encoding does not match protocol spec
Date Mon, 01 Jun 2015 09:30:17 GMT


Sylvain Lebresne commented on CASSANDRA-9515:

I agree, let's use full [bytes] and not make too much assumptions on how people will use this.
In term of priorities, let's just make sure we get this committed for the RC (it's fine if
that's broken compared to the beta, that's what betas are for).

> Bytes map encoding does not match protocol spec
> -----------------------------------------------
>                 Key: CASSANDRA-9515
>                 URL:
>             Project: Cassandra
>          Issue Type: Bug
>            Reporter: Olivier Michallat
>            Assignee: Robert Stupp
>             Fix For: 2.2.0 rc1
> 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

View raw message