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 AF6159DEC for ; Mon, 27 Feb 2012 21:58:14 +0000 (UTC) Received: (qmail 67991 invoked by uid 500); 27 Feb 2012 21:58:14 -0000 Delivered-To: apmail-cassandra-commits-archive@cassandra.apache.org Received: (qmail 67912 invoked by uid 500); 27 Feb 2012 21:58:14 -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 67894 invoked by uid 99); 27 Feb 2012 21:58:14 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 27 Feb 2012 21:58:14 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 27 Feb 2012 21:58:10 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id C914A33DC25 for ; Mon, 27 Feb 2012 21:57:49 +0000 (UTC) Date: Mon, 27 Feb 2012 21:57:49 +0000 (UTC) From: "Pavel Yaskevich (Commented) (JIRA)" To: commits@cassandra.apache.org Message-ID: <2009908937.25040.1330379869825.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <1130619594.10797.1330022089181.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Commented] (CASSANDRA-3953) Replace deprecated and removed CfDef and KsDef attributes in thrift spec MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/CASSANDRA-3953?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13217612#comment-13217612 ] Pavel Yaskevich commented on CASSANDRA-3953: -------------------------------------------- That does not affect new schema functions at all because those attributes won't be set if they are not present in serialized schema (which is fine because they are optional) and even if they are it will just set them :) > Replace deprecated and removed CfDef and KsDef attributes in thrift spec > ------------------------------------------------------------------------ > > Key: CASSANDRA-3953 > URL: https://issues.apache.org/jira/browse/CASSANDRA-3953 > Project: Cassandra > Issue Type: Improvement > Components: API > Affects Versions: 1.0.0 > Reporter: paul cannon > Assignee: paul cannon > Priority: Minor > Labels: thrift_protocol > Fix For: 1.1.0 > > > In a discussion on irc this morning around the "interface backwards compatibility" topic (as explained in CASSANDRA-3951), the opinion was expressed that it might not hurt to provide backwards compat for c* servers as well as clients. > This could be done by adding back all CfDef and KsDef attributes that were removed since thrift spec 19.0.0 (0.7.0-beta2). Namely: > * bool CfDef.preload_row_cache (only in 0.7.0 betas; probably not necessary) > * double CfDef.row_cache_size > * double CfDef.key_cache_size > * i32 CfDef.row_cache_save_period_in_seconds > * i32 CfDef.key_cache_save_period_in_seconds > * i32 CfDef.memtable_flush_after_mins > * i32 CfDef.memtable_throughput_in_mb > * double CfDef.memtable_operations_in_millions > * string CfDef.row_cache_provider > * i32 CfDef.row_cache_keys_to_save > * double CfDef.merge_shards_chance > * i32 KsDef.replication_factor > Obviously these attributes should not be expected to have any effect when used with the current version of Cassandra; they may be marked "ignored", "unused", or "deprecated" or whatever, as appropriate. > This should allow library software to be built against one thrift spec (the latest) and be then expected to work (keeping all necessary attributes available and usable) against any Cassandra version back to 0.7.0-beta2. > (To really achieve this goal 100%, we should reinstate the system_rename_column_family() and system_rename_keyspace() calls too, and just have them raise InvalidRequestException, but they never really worked anyway, so it's probably better to leave them out.) -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira