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 9137E7D75 for ; Thu, 1 Dec 2011 08:28:05 +0000 (UTC) Received: (qmail 65255 invoked by uid 500); 1 Dec 2011 08:28:05 -0000 Delivered-To: apmail-cassandra-commits-archive@cassandra.apache.org Received: (qmail 64815 invoked by uid 500); 1 Dec 2011 08:28: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 64131 invoked by uid 99); 1 Dec 2011 08:28:03 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 01 Dec 2011 08:28:03 +0000 X-ASF-Spam-Status: No, hits=-2001.2 required=5.0 tests=ALL_TRUSTED,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; Thu, 01 Dec 2011 08:28:01 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 3637FABA85 for ; Thu, 1 Dec 2011 08:27:40 +0000 (UTC) Date: Thu, 1 Dec 2011 08:27:40 +0000 (UTC) From: "Yuki Morishita (Updated) (JIRA)" To: commits@cassandra.apache.org Message-ID: <330794870.30076.1322728060223.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <1203210245.22544.1322589580051.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Updated] (CASSANDRA-3540) Wrong check of partitioner for secondary indexes 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-3540?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Yuki Morishita updated CASSANDRA-3540: -------------------------------------- Attachment: cassandra-1.0-3540.txt This bug is caused by SSTableMetadata providing node's partitioner when reading old version (prior hc) of sstable. Attached patch let SSTableMetadata to use empty string("") instead of DatabaseDescriptor.getPartitioner as default. When older version of sstable is read, SSTableMetadata provides empty string for partitioner, and check for partitioner is skipped. > Wrong check of partitioner for secondary indexes > ------------------------------------------------ > > Key: CASSANDRA-3540 > URL: https://issues.apache.org/jira/browse/CASSANDRA-3540 > Project: Cassandra > Issue Type: Bug > Components: Core > Affects Versions: 1.0.4 > Reporter: Sylvain Lebresne > Assignee: Yuki Morishita > Priority: Critical > Fix For: 1.0.6 > > Attachments: cassandra-1.0-3540.txt > > > CASSANDRA-3407 doesn't handle the fact that secondary indexes have a specific partitioner (LocalPartitioner). This result in the following error when starting nodes in 1.0.4: > {noformat} > java.lang.RuntimeException: Cannot open /var/lib/cassandra/data/Index/AttractionLocationCategoryDateIdx.AttractionLocationCategoryDateIdx_09partition_idx-h-1 because partitioner does not match org.apache.cassandra.dht.LocalPartitioner > {noformat} -- 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