improve error message on partitioner mismatch patch by jbellis; reviewed by slebresne for CASSANDRA-4843
Project: http://git-wip-us.apache.org/repos/asf/cassandra/repo Commit: http://git-wip-us.apache.org/repos/asf/cassandra/commit/7b4639ab Tree: http://git-wip-us.apache.org/repos/asf/cassandra/tree/7b4639ab Diff: http://git-wip-us.apache.org/repos/asf/cassandra/diff/7b4639ab Branch: refs/heads/cassandra-1.2 Commit: 7b4639ab26d6c1f174bab07a32eb7838c1c51c09 Parents: 93738e3 Author: Jonathan Ellis <jbel...@apache.org> Authored: Wed Nov 28 00:35:50 2012 +0900 Committer: Jonathan Ellis <jbel...@apache.org> Committed: Wed Nov 28 00:35:50 2012 +0900 ---------------------------------------------------------------------- .../apache/cassandra/io/sstable/SSTableReader.java | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/cassandra/blob/7b4639ab/src/java/org/apache/cassandra/io/sstable/SSTableReader.java ---------------------------------------------------------------------- diff --git a/src/java/org/apache/cassandra/io/sstable/SSTableReader.java b/src/java/org/apache/cassandra/io/sstable/SSTableReader.java index 6a9e8d2..8fe820a 100644 --- a/src/java/org/apache/cassandra/io/sstable/SSTableReader.java +++ b/src/java/org/apache/cassandra/io/sstable/SSTableReader.java @@ -173,7 +173,7 @@ public class SSTableReader extends SSTable String partitionerName = partitioner.getClass().getCanonicalName(); if (sstableMetadata.partitioner != null && !partitionerName.equals(sstableMetadata.partitioner)) { - logger.error(String.format("Cannot open %s because partitioner does not match %s != %s. Please verify your partitioner in cassandra.yaml", + logger.error(String.format("Cannot open %s; partitioner %s does not match system partitioner %s. Note that the default partitioner starting with Cassandra 1.2 is Murmur3Partitioner, so you will need to edit that to match your old partitioner if upgrading.", descriptor, sstableMetadata.partitioner, partitionerName)); System.exit(1); }