cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jeremy Hanna (JIRA)" <>
Subject [jira] [Commented] (CASSANDRA-5793) OPP seems completely unsupported
Date Tue, 23 Jul 2013 10:34:48 GMT


Jeremy Hanna commented on CASSANDRA-5793:


You can't change partitioner once the data has been written.  Row of data are ordered in sstables
according to the partitioner.  You can upgrade to 1.1.x or stay at 0.7, then using Hadoop
or a batch job, you can read from your existing cluster and write to a different cluster running
1.2.6 with your new partitioner.
> OPP seems completely unsupported
> --------------------------------
>                 Key: CASSANDRA-5793
>                 URL:
>             Project: Cassandra
>          Issue Type: Bug
>          Components: Core
>    Affects Versions: 1.2.5
>         Environment: Cassandra on Ubuntu
>            Reporter: Vara Kumar
>             Fix For: 1.2.7
> We were using 0.7.6 version. And upgraded to 1.2.5 today. We were using OPP (OrderPreservingPartitioner).
> OPP throws error when any node join the cluster. Cluster can not be brought up due to
this error. After digging little deep, We realized that "peers" column family is defined with
key as type "inet". Looks like many other column families in system keyspace has same issue.
> Exception trace:
> java.lang.RuntimeException: The provided key was not UTF8 encoded.
> 	at org.apache.cassandra.dht.OrderPreservingPartitioner.getToken(
> 	at org.apache.cassandra.dht.OrderPreservingPartitioner.decorateKey(
> 	at org.apache.cassandra.db.Table.apply(
> 	at org.apache.cassandra.db.Table.apply(
> 	at org.apache.cassandra.db.RowMutation.apply(
> 	at org.apache.cassandra.cql3.statements.ModificationStatement.executeInternal(
> 	at org.apache.cassandra.cql3.QueryProcessor.processInternal(
> 	at org.apache.cassandra.db.SystemTable.updatePeerInfo(
> 	at org.apache.cassandra.service.StorageService.onChange(
> 	at org.apache.cassandra.service.StorageService.onJoin(
> 	at org.apache.cassandra.gms.Gossiper.handleMajorStateChange(
> 	at org.apache.cassandra.gms.Gossiper.applyStateLocally(
> 	at org.apache.cassandra.gms.GossipDigestAck2VerbHandler.doVerb(
> Possibilities:
> - Changing partitioner to BOP (or something else) fails while loading schema_keyspaces.
So, it does not look like an option.
> - One possibility is that getToken of OPP can return hex value if it fails to encode
bytes to UTF-8 instead of throwing error. By this system tables seem to be working fine with
> - Or Completely remove OPP from code base & configuration files. Mark clearly that
OPP is no longer supported in upgrade instructions.

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see:

View raw message