You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by "Jeff Hammerbacher (JIRA)" <ji...@apache.org> on 2009/03/21 19:52:50 UTC

[jira] Created: (CASSANDRA-8) Misspelled ColumSort attribute results in deleted commit logs and .db files

Misspelled ColumSort attribute results in deleted commit logs and .db files
---------------------------------------------------------------------------

                 Key: CASSANDRA-8
                 URL: https://issues.apache.org/jira/browse/CASSANDRA-8
             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.


[jira] Resolved: (CASSANDRA-8) Misspelled ColumSort attribute results in deleted commit logs and .db files

Posted by "Avinash Lakshman (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CASSANDRA-8?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Avinash Lakshman resolved CASSANDRA-8.
--------------------------------------

    Resolution: Fixed

> Misspelled ColumSort attribute results in deleted commit logs and .db files
> ---------------------------------------------------------------------------
>
>                 Key: CASSANDRA-8
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-8
>             Project: Cassandra
>          Issue Type: Bug
>            Reporter: Jeff Hammerbacher
>         Attachments: column_sort_fix.patch
>
>


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


[jira] Issue Comment Edited: (CASSANDRA-8) Misspelled ColumSort attribute results in deleted commit logs and .db files

Posted by "Alexander Staubo (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CASSANDRA-8?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12688074#action_12688074 ] 

Alexander Staubo edited comment on CASSANDRA-8 at 3/22/09 5:26 AM:
-------------------------------------------------------------------

Attached patch to add warning on misconfiguration

      was (Author: armchairalligator):
    Patch to add warning on misconfiguration
  
> Misspelled ColumSort attribute results in deleted commit logs and .db files
> ---------------------------------------------------------------------------
>
>                 Key: CASSANDRA-8
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-8
>             Project: Cassandra
>          Issue Type: Bug
>            Reporter: Jeff Hammerbacher
>         Attachments: column_sort_fix.patch
>
>


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


[jira] Commented: (CASSANDRA-8) Misspelled ColumSort attribute results in deleted commit logs and .db files

Posted by "Jeff Hammerbacher (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CASSANDRA-8?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12688070#action_12688070 ] 

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:

java.lang.NullPointerException
       at org.apache.cassandra.config.DatabaseDescriptor.getTypeInfo(DatabaseDescriptor.java:729)
       at org.apache.cassandra.db.ColumnIndexer.serialize(ColumnIndexer.java:62)
       at org.apache.cassandra.db.CompactSerializerInvocationHandler.invoke(CompactSerializerInvocationHandler.java:50)
       at $Proxy0.serialize(Unknown Source)
       at org.apache.cassandra.db.Memtable.flushForRandomPartitioner(Memtable.java:461)
       at org.apache.cassandra.db.Memtable.flush(Memtable.java:440)
       at org.apache.cassandra.db.Memtable.forceflush(Memtable.java:279)
       at org.apache.cassandra.db.ColumnFamilyStore.forceFlush(ColumnFamilyStore.java:409)
       at org.apache.cassandra.db.Table.flush(Table.java:857)
       at org.apache.cassandra.db.CommitLog.doRecovery(CommitLog.java:408)
       at org.apache.cassandra.db.CommitLog.recover(CommitLog.java:317)
       at org.apache.cassandra.db.RecoveryManager.recoverEachTable(RecoveryManager.java:90)
       at org.apache.cassandra.db.RecoveryManager.doRecovery(RecoveryManager.java:77)
       at org.apache.cassandra.db.DBManager.<init>(DBManager.java:112)
       at org.apache.cassandra.db.DBManager.instance(DBManager.java:61)
       at org.apache.cassandra.service.StorageService.start(StorageService.java:465)
       at org.apache.cassandra.service.CassandraServer.start(CassandraServer.java:96)
       at org.apache.cassandra.service.CassandraServer.main(CassandraServer.java:1049)

...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
cause.
"""

> Misspelled ColumSort attribute results in deleted commit logs and .db files
> ---------------------------------------------------------------------------
>
>                 Key: CASSANDRA-8
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-8
>             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.


[jira] Commented: (CASSANDRA-8) Misspelled ColumSort attribute results in deleted commit logs and .db files

Posted by "Avinash Lakshman (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CASSANDRA-8?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12688719#action_12688719 ] 

Avinash Lakshman commented on CASSANDRA-8:
------------------------------------------

This works for now. However a more disciplined approach is required. For now this case is closed.

> Misspelled ColumSort attribute results in deleted commit logs and .db files
> ---------------------------------------------------------------------------
>
>                 Key: CASSANDRA-8
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-8
>             Project: Cassandra
>          Issue Type: Bug
>            Reporter: Jeff Hammerbacher
>         Attachments: column_sort_fix.patch
>
>


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


[jira] Updated: (CASSANDRA-8) Misspelled ColumSort attribute results in deleted commit logs and .db files

Posted by "Alexander Staubo (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CASSANDRA-8?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Alexander Staubo updated CASSANDRA-8:
-------------------------------------

    Attachment: column_sort_fix.patch

Patch to add warning on misconfiguration

> Misspelled ColumSort attribute results in deleted commit logs and .db files
> ---------------------------------------------------------------------------
>
>                 Key: CASSANDRA-8
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-8
>             Project: Cassandra
>          Issue Type: Bug
>            Reporter: Jeff Hammerbacher
>         Attachments: column_sort_fix.patch
>
>


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