[ https://issues.apache.org/jira/browse/CASSANDRA-3540?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Yuki Morishita updated CASSANDRA-3540: -------------------------------------- Attachment: 0002-Fix-SSTableMetadata-to-write-correct-partitioner.patch 0001-Add-tests-for-opening-index-sstables.patch Sylvain, I separate the patch into two parts. 0001 just adds tests to reproduce CASSANDRA-3407, one test from previous patch (flush and open) and new test to simulate upgrading from previous version of SSTable. Patch generates Indexed1 SSTable which I created using v1.0.3 (SSTable version is "hb") under test/data/legacy-sstables/hb. When testing, those sstables are copied into unit test data location just like ScrubTest does. Note that it also generates Standard1 sstable in order to let LegacySSTableTest pass. 0002 contains fix same as previously submitted patch. Only applying 0001 patch let SSTableReaderTest in current 1.0 branch fail, and you can see it success after applying 0002. > 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: 0001-Add-tests-for-opening-index-sstables.patch, > 0002-Fix-SSTableMetadata-to-write-correct-partitioner.patch, > cassandra-1.0-3540-v2.txt, 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