cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Branimir Lambov (JIRA)" <>
Subject [jira] [Updated] (CASSANDRA-8375) Cleanup of generics in bounds serialization
Date Mon, 09 Mar 2015 19:16:38 GMT


Branimir Lambov updated CASSANDRA-8375:
    Attachment: 8375-v4.patch

Java 7 accepts it, 6 doesn't. Updated.

Apologies, I have no excuse for these blunders.

> Cleanup of generics in bounds serialization
> -------------------------------------------
>                 Key: CASSANDRA-8375
>                 URL:
>             Project: Cassandra
>          Issue Type: Improvement
>            Reporter: Branimir Lambov
>            Assignee: Branimir Lambov
>            Priority: Trivial
>             Fix For: 3.0
>         Attachments: 8375-v2.patch, 8375-v3.patch, 8375-v4.patch, 8375.patch
> There is currently a single serializer for {{AbstractBounds}} applied to both {{Token}}
and {{RowPosition}} ranges and bounds. This serializer does not know which kind of bounds
it needs to work with, which causes some necessarily unsafe conversions and needs extra code
in all bounds types ({{toRowBounds}}/{{toTokenBounds}}) to make the conversions safe, the
application of which can be easily forgotten.
> As all users of this serialization know in advance the kind of range they want to serialize,
this can be replaced by simpler type-specific serialization.

This message was sent by Atlassian JIRA

View raw message