cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sylvain Lebresne (JIRA)" <>
Subject [jira] [Updated] (CASSANDRA-5355) Collection values size is not validated.
Date Thu, 21 Mar 2013 11:25:15 GMT


Sylvain Lebresne updated CASSANDRA-5355:

    Attachment: 5355.txt

Patch attached to do 2 things:
# validate the 64K limit on inserts. Note that the patch does the validation for set values
and map keys too so as to provide a more meaningful error message, but in practice slightly
slower value may be rejected if the column name limit is reached.
# fix a small "bug" in the collection types {{compose}} method that was not reading the size
unsigned, thus artificially limiting the size to 32K.

> Collection values size is not validated.
> ----------------------------------------
>                 Key: CASSANDRA-5355
>                 URL:
>             Project: Cassandra
>          Issue Type: Bug
>    Affects Versions: 1.2.0
>            Reporter: Sylvain Lebresne
>            Assignee: Sylvain Lebresne
>            Priority: Minor
>         Attachments: 5355.txt
> Collections values are currently limited to 64K because the serialized form used uses
shorts to encode the elements length (and for sets elements and key map, because they are
part of the internal column name that is itself limited to 64K).
> However, there is no check on the collection elements size currently so we don't refuse
values > 64K (except for sets elements and map keys because we check internal column name
sizes), even though they can't be decoded correctly client side.

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see:

View raw message