cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Stephen Pope (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CASSANDRA-4021) CFS.scrubDataDirectories tries to delete nonexistent orphans
Date Thu, 24 Jan 2013 19:07:13 GMT

    [ https://issues.apache.org/jira/browse/CASSANDRA-4021?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13561870#comment-13561870
] 

Stephen Pope commented on CASSANDRA-4021:
-----------------------------------------

Saw this today on one of our test machine. Windows box with Cassandra 1.1.5. It would be nice
to have it log and continue instead of puking. :) On the bright side, it does make progress
every time upon startup and eventually starts fine. Haven't been able to reproduce it since.
Log:

WARN [main] 2013-01-24 13:01:50,480 ColumnFamilyStore.java (line 393) Removing orphans for
C:\Program Files\Quest Software\MessageStats Business Insights\Storage\data\Doradus\MS_1_MessageParticipantPair_Terms\Doradus-MS_1_MessageParticipantPair_Terms-he-31:
[Statistics.db, Filter.db, Digest.sha1, Data.db, Index.db]
ERROR [main] 2013-01-24 13:01:50,480 AbstractCassandraDaemon.java (line 406) Exception encountered
during startup
java.lang.AssertionError: attempted to delete non-existing file Doradus-MS_1_MessageParticipantPair_Terms-he-31-Filter.db
                at org.apache.cassandra.io.util.FileUtils.deleteWithConfirm(FileUtils.java:68)
                at org.apache.cassandra.io.util.FileUtils.deleteWithConfirm(FileUtils.java:63)
                at org.apache.cassandra.db.ColumnFamilyStore.scrubDataDirectories(ColumnFamilyStore.java:398)
                at org.apache.cassandra.service.AbstractCassandraDaemon.setup(AbstractCassandraDaemon.java:196)
                at org.apache.cassandra.service.AbstractCassandraDaemon.activate(AbstractCassandraDaemon.java:389)
                at org.apache.cassandra.thrift.CassandraDaemon.main(CassandraDaemon.java:106)
WARN [main] 2013-01-24 13:35:32,656 ColumnFamilyStore.java (line 393) Removing orphans for
C:\Program Files\Quest Software\MessageStats Business Insights\Storage\data\Doradus\MS_1_MessageParticipantPair_Terms\Doradus-MS_1_MessageParticipantPair_Terms-he-31:
[Data.db, Digest.sha1, Filter.db, Index.db]
ERROR [main] 2013-01-24 13:35:32,656 AbstractCassandraDaemon.java (line 406) Exception encountered
during startup
java.lang.AssertionError: attempted to delete non-existing file Doradus-MS_1_MessageParticipantPair_Terms-he-31-Data.db
                at org.apache.cassandra.io.util.FileUtils.deleteWithConfirm(FileUtils.java:68)
                at org.apache.cassandra.io.util.FileUtils.deleteWithConfirm(FileUtils.java:63)
                at org.apache.cassandra.db.ColumnFamilyStore.scrubDataDirectories(ColumnFamilyStore.java:398)
                at org.apache.cassandra.service.AbstractCassandraDaemon.setup(AbstractCassandraDaemon.java:196)
                at org.apache.cassandra.service.AbstractCassandraDaemon.activate(AbstractCassandraDaemon.java:389)
                at org.apache.cassandra.thrift.CassandraDaemon.main(CassandraDaemon.java:106)
WARN [main] 2013-01-24 13:35:44,559 ColumnFamilyStore.java (line 393) Removing orphans for
C:\Program Files\Quest Software\MessageStats Business Insights\Storage\data\Doradus\MS_1_MessageParticipantPair_Terms\Doradus-MS_1_MessageParticipantPair_Terms-he-31:
[Index.db, Digest.sha1, Data.db, Filter.db]
ERROR [main] 2013-01-24 13:35:44,559 AbstractCassandraDaemon.java (line 406) Exception encountered
during startup
java.lang.AssertionError: attempted to delete non-existing file Doradus-MS_1_MessageParticipantPair_Terms-he-31-Data.db
                at org.apache.cassandra.io.util.FileUtils.deleteWithConfirm(FileUtils.java:68)
                at org.apache.cassandra.io.util.FileUtils.deleteWithConfirm(FileUtils.java:63)
                at org.apache.cassandra.db.ColumnFamilyStore.scrubDataDirectories(ColumnFamilyStore.java:398)
                at org.apache.cassandra.service.AbstractCassandraDaemon.setup(AbstractCassandraDaemon.java:196)
                at org.apache.cassandra.service.AbstractCassandraDaemon.activate(AbstractCassandraDaemon.java:389)
                at org.apache.cassandra.thrift.CassandraDaemon.main(CassandraDaemon.java:106)

                
> CFS.scrubDataDirectories tries to delete nonexistent orphans
> ------------------------------------------------------------
>
>                 Key: CASSANDRA-4021
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-4021
>             Project: Cassandra
>          Issue Type: Bug
>          Components: Core
>    Affects Versions: 0.7 beta 2
>            Reporter: Brandon Williams
>            Assignee: Brandon Williams
>            Priority: Minor
>              Labels: datastax_qa
>         Attachments: 4021.txt, node1.log
>
>
> The check only looks for a missing data file, then deletes all other components, however
it's possible for the data file and another component to be missing, causing an error:
> {noformat}
>  WARN 17:19:28,765 Removing orphans for /var/lib/cassandra/data/system/HintsColumnFamily/system-HintsColumnFamily-hd-24492:
[Index.db, Filter.db, Digest.sha1, Statistics.db, Data.db]
> ERROR 17:19:28,766 Exception encountered during startup
> java.lang.AssertionError: attempted to delete non-existing file system-HintsColumnFamily-hd-24492-Index.db
>         at org.apache.cassandra.io.util.FileUtils.deleteWithConfirm(FileUtils.java:49)
>         at org.apache.cassandra.io.util.FileUtils.deleteWithConfirm(FileUtils.java:44)
>         at org.apache.cassandra.db.ColumnFamilyStore.scrubDataDirectories(ColumnFamilyStore.java:357)
>         at org.apache.cassandra.service.AbstractCassandraDaemon.setup(AbstractCassandraDaemon.java:167)
>         at org.apache.cassandra.service.AbstractCassandraDaemon.activate(AbstractCassandraDaemon.java:352)
>         at org.apache.cassandra.thrift.CassandraDaemon.main(CassandraDaemon.java:105)
> java.lang.AssertionError: attempted to delete non-existing file system-HintsColumnFamily-hd-24492-Index.db
>         at org.apache.cassandra.io.util.FileUtils.deleteWithConfirm(FileUtils.java:49)
>         at org.apache.cassandra.io.util.FileUtils.deleteWithConfirm(FileUtils.java:44)
>         at org.apache.cassandra.db.ColumnFamilyStore.scrubDataDirectories(ColumnFamilyStore.java:357)
>         at org.apache.cassandra.service.AbstractCassandraDaemon.setup(AbstractCassandraDaemon.java:167)
>         at org.apache.cassandra.service.AbstractCassandraDaemon.activate(AbstractCassandraDaemon.java:352)
>         at org.apache.cassandra.thrift.CassandraDaemon.main(CassandraDaemon.java:105)
> Exception encountered during startup: attempted to delete non-existing file system-HintsColumnFamily-hd-24492-Index.db
> {noformat}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message