incubator-cassandra-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hiller, Dean" <>
Subject Re: is this a cassandra bug?
Date Tue, 25 Sep 2012 20:40:45 GMT
Hmmm, is rowkey validation asynchronous to the actually sending of the
data to cassandra? 

I seem to be able to put an invalid type and GET that invalid data back
just fine even though my type was an int and the comparator was Decimal
BUT then in the logs I see a validation fail exception but I never saw
anything client sideŠin fact, the client READ back the data fine so I am
bit confused hereŠ..1.1.4Š..I tested this on a single node after seeing it
in our 6 node cluster with the same results.


On 9/25/12 2:13 PM, "Hiller, Dean" <> wrote:

>This is cassandra 1.1.4
>Describe shows DecimalType and I test setting comparator TOOOOO the
>DecimalType and it fails  (Realize I have never touched this column
>family until now except for posting data which succeeded)
>[default@unknown] use databus;
>Authenticated to keyspace: databus
>[default@databus] describe bacnet9800AnalogInput9;
>    ColumnFamily: bacnet9800AnalogInput9
>      Key Validation Class: org.apache.cassandra.db.marshal.DecimalType
>      Default column value validator:
>      Columns sorted by: org.apache.cassandra.db.marshal.UTF8Type
>      GC grace seconds: 864000
>      Compaction min/max thresholds: 4/32
>      Read repair chance: 0.1
>      DC Local Read repair chance: 0.0
>      Replicate on write: true
>      Caching: KEYS_ONLY
>      Bloom Filter FP chance: default
>      Built indexes: []
>      Compaction Strategy:
>      Compression Options:
>        sstable_compression:
>[default@databus] update column family bacnet9800AnalogInput9 with
>comparator = DecimalType;
>Exception from system.log from the node in the cluster is
>ERROR [MigrationStage:1] 2012-09-25 14:11:20,327
> (line 134) Exception in thread
>org.apache.cassandra.config.ConfigurationException: comparators do not
>match or are not compatible.
>at org.apache.cassandra.utils.FBUtilities.unchecked(
>at java.util.concurrent.Executors$
>at java.util.concurrent.FutureTask$Sync.innerRun(
>Caused by:
>org.apache.cassandra.config.ConfigurationException: comparators do not
>match or are not compatible.
>at org.apache.cassandra.config.CFMetaData.reload(
>at org.apache.cassandra.db.DefsTable.mergeSchema(
>at org.apache.cassandra.db.DefsTable.mergeRemoteSchema(
>... 6 more
>Caused by: org.apache.cassandra.config.ConfigurationException:
>comparators do not match or are not compatible.
>at org.apache.cassandra.config.CFMetaData.apply(
>at org.apache.cassandra.config.CFMetaData.reload(
>... 12 more

View raw message