Return-Path: X-Original-To: apmail-cassandra-commits-archive@www.apache.org Delivered-To: apmail-cassandra-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 252D317B8C for ; Wed, 4 Mar 2015 17:10:08 +0000 (UTC) Received: (qmail 9546 invoked by uid 500); 4 Mar 2015 17:10:05 -0000 Delivered-To: apmail-cassandra-commits-archive@cassandra.apache.org Received: (qmail 9517 invoked by uid 500); 4 Mar 2015 17:10:04 -0000 Mailing-List: contact commits-help@cassandra.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cassandra.apache.org Delivered-To: mailing list commits@cassandra.apache.org Received: (qmail 9505 invoked by uid 99); 4 Mar 2015 17:10:04 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 04 Mar 2015 17:10:04 +0000 Date: Wed, 4 Mar 2015 17:10:04 +0000 (UTC) From: "Joshua McKenzie (JIRA)" To: commits@cassandra.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (CASSANDRA-8375) Cleanup of generics in bounds serialization MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/CASSANDRA-8375?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14347161#comment-14347161 ] Joshua McKenzie commented on CASSANDRA-8375: -------------------------------------------- Sorry for the delay on this - looks good. Could we get a rebase to current trunk? > Cleanup of generics in bounds serialization > ------------------------------------------- > > Key: CASSANDRA-8375 > URL: https://issues.apache.org/jira/browse/CASSANDRA-8375 > Project: Cassandra > Issue Type: Improvement > Reporter: Branimir Lambov > Assignee: Branimir Lambov > Priority: Trivial > Fix For: 3.0 > > Attachments: 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 (v6.3.4#6332)