Cannot create CompositeType using pycassa (worked in 0.8.x)
-----------------------------------------------------------

                 Key: CASSANDRA-3401
                 URL: https://issues.apache.org/jira/browse/CASSANDRA-3401
             Project: Cassandra
          Issue Type: Bug
          Components: Core, Drivers
    Affects Versions: 1.0.0
            Reporter: Justin Plock


Using pycassa 1.2.1 against Cassandra 0.8.x, this code worked fine:
{code}
key_field_comparator = pycassa.CompositeType(pycassa.TimeUUIDType(), 
pycassa.UTF8Type())
value_key_comparator = pycassa.CompositeType(pycassa.UTF8Type(), 
pycassa.TimeUUIDType())
SYSTEM_MANAGER.create_column_family('Indexes', 'Items', 
comparator_type=value_key_comparator, 
default_validation_class=pycassa.TIME_UUID_TYPE, 
key_validation_class=key_field_comparator)
{code}
However, against Cassandra 1.0, this same code will now hang my python script 
indefinitely. After killing the program, Cassandra will crash and will throw 
this exception:
{code:javascript}
Exception encountered during startup: Could not inflate CFMetaData for {
"keyspace": "Indexes",
"name": "Items",
"column_type": "Standard",
"comparator_type": 
"org.apache.cassandra.db.marshal.CompositeType(org.apache.cassandra.db.marshal.UTF8Type,org.apache.cassandra.db.marshal.TimeUUIDType)",
"subcomparator_type": null,
"comment": "",
"row_cache_size": 0.0,
"key_cache_size": 200000.0,
"read_repair_chance": 1.0,
"replicate_on_write": true,
"gc_grace_seconds": 864000,
"default_validation_class": "org.apache.cassandra.db.marshal.TimeUUIDType",
"key_validation_class": "org.apache.cassandra.db.marshal.CompositeType",
"min_compaction_threshold": 4,
"max_compaction_threshold": 32,
"row_cache_save_period_in_seconds": 0,
"key_cache_save_period_in_seconds": 14400,
"row_cache_keys_to_save": 2147483647,
"merge_shards_chance": 0.1,
"id": 1004,
"column_metadata": [],
"row_cache_provider": 
"org.apache.cassandra.cache.ConcurrentLinkedHashCacheProvider",
"key_alias": null,
"compaction_strategy": 
"org.apache.cassandra.db.compaction.SizeTieredCompactionStrategy",
"compaction_strategy_options": {},
"compression_options": {}
}
{code}


--
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

        

Reply via email to