cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jeff Hammerbacher (JIRA)" <>
Subject [jira] Commented: (CASSANDRA-8) Misspelled ColumSort attribute results in deleted commit logs and .db files
Date Sat, 21 Mar 2009 18:56:50 GMT


Jeff Hammerbacher commented on CASSANDRA-8:

>From Alexander Staubo:

I was confused by the meaning of the "ColumnSort" attribute in the
config file, and typed something invalid. The result was the following
exception on compaction, when Cassandra starts up:

       at org.apache.cassandra.config.DatabaseDescriptor.getTypeInfo(
       at org.apache.cassandra.db.ColumnIndexer.serialize(
       at org.apache.cassandra.db.CompactSerializerInvocationHandler.invoke(
       at $Proxy0.serialize(Unknown Source)
       at org.apache.cassandra.db.Memtable.flushForRandomPartitioner(
       at org.apache.cassandra.db.Memtable.flush(
       at org.apache.cassandra.db.Memtable.forceflush(
       at org.apache.cassandra.db.ColumnFamilyStore.forceFlush(
       at org.apache.cassandra.db.Table.flush(
       at org.apache.cassandra.db.CommitLog.doRecovery(
       at org.apache.cassandra.db.CommitLog.recover(
       at org.apache.cassandra.db.RecoveryManager.recoverEachTable(
       at org.apache.cassandra.db.RecoveryManager.doRecovery(
       at org.apache.cassandra.db.DBManager.<init>(
       at org.apache.cassandra.db.DBManager.instance(
       at org.apache.cassandra.service.StorageService.start(
       at org.apache.cassandra.service.CassandraServer.start(
       at org.apache.cassandra.service.CassandraServer.main(

...after which the commit logs were gone, and there were no .db files.
So my database went *poof*.

The attached patch emits a warning if the ColumnSort attribute is
invalid, and uses the appropriate default of "Time" in that case.

However, this fixes only one possible failure scenario for
compactions, but not the underlying problem that a failing compaction
hoses the database. In my opinion, failing compactions should never
result in the commit logs being deleted, regardless of the failure

> Misspelled ColumSort attribute results in deleted commit logs and .db files
> ---------------------------------------------------------------------------
>                 Key: CASSANDRA-8
>                 URL:
>             Project: Cassandra
>          Issue Type: Bug
>            Reporter: Jeff Hammerbacher

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

View raw message