cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Tyler Hobbs (JIRA)" <>
Subject [jira] [Created] (CASSANDRA-2696) Exception adding validators to non-string columns
Date Tue, 24 May 2011 03:49:47 GMT
Exception adding validators to non-string columns

                 Key: CASSANDRA-2696
             Project: Cassandra
          Issue Type: Bug
          Components: Core
    Affects Versions: 0.8.0 beta 2
            Reporter: Tyler Hobbs
            Priority: Minor
         Attachments: 2696-test.txt

Adding column metadata to a column with a non-string name causes an Exception to be raised:

org.apache.cassandra.db.marshal.MarshalException: Expected 8 or 0 byte long (3)
	at org.apache.cassandra.db.marshal.LongType.validate(
	at org.apache.cassandra.config.CFMetaData.validateAliasCompares(
	at org.apache.cassandra.config.CFMetaData.apply(
	at org.apache.cassandra.db.migration.UpdateColumnFamily.<init>(
	at org.apache.cassandra.thrift.CassandraServer.system_update_column_family(
	at org.apache.cassandra.thrift.Cassandra$Processor$system_update_column_family.process(
	at org.apache.cassandra.thrift.Cassandra$Processor.process(
	at org.apache.cassandra.thrift.CustomTThreadPoolServer$
	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(
	at java.util.concurrent.ThreadPoolExecutor$

For example, if the comparator type is LongType, adding a validator or index to column int(3)
will cause this.

This message is automatically generated by JIRA.
For more information on JIRA, see:

View raw message