[
https://issues.apache.org/jira/browse/CASSANDRA-4235?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13273254#comment-13273254
]
Steeve Morin commented on CASSANDRA-4235:
-----------------------------------------
Happened to me a few times. I thought I did something wrong. Had 3 keyspaces
(not counting system), only 1 is showing up now. The files are still here.
To complement the previous file, here a stack trace when trying to
delete/re-create the missing keyspaces:
{{
INFO 15:33:43,505 Enqueuing flush of
Memtable-schema_keyspaces@1108352425(192/240 serialized/live bytes, 4 ops)
INFO 15:33:43,505 Writing Memtable-schema_keyspaces@1108352425(192/240
serialized/live bytes, 4 ops)
INFO 15:33:43,512 Completed flushing
/var/lib/cassandra/data/system/schema_keyspaces/system-schema_keyspaces-hc-36-Data.db
(256 bytes)
INFO 15:33:43,513 Compacting
[SSTableReader(path='/var/lib/cassandra/data/system/schema_keyspaces/system-schema_keyspaces-hc-34-Data.db'),
SSTableReader(path='/var/lib/cassandra/data/system/schema_keyspaces/system-schema_keyspaces-hc-35-Data.db'),
SSTableReader(path='/var/lib/cassandra/data/system/schema_keyspaces/system-schema_keyspaces-hc-36-Data.db'),
SSTableReader(path='/var/lib/cassandra/data/system/schema_keyspaces/system-schema_keyspaces-hc-33-Data.db')]
INFO 15:33:43,524 Compacted to
[/var/lib/cassandra/data/system/schema_keyspaces/system-schema_keyspaces-hc-37-Data.db,].
1,498 to 730 (~48% of original) bytes for 3 keys at 0.069618MB/s. Time: 10ms.
ERROR 15:33:43,525 Exception in thread Thread[MigrationStage:1,5,main]
java.lang.AssertionError
at org.apache.cassandra.db.DefsTable.updateKeyspace(DefsTable.java:441)
at org.apache.cassandra.db.DefsTable.mergeKeyspaces(DefsTable.java:339)
at org.apache.cassandra.db.DefsTable.mergeSchema(DefsTable.java:269)
at
org.apache.cassandra.service.MigrationManager$1.call(MigrationManager.java:214)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
at java.util.concurrent.FutureTask.run(FutureTask.java:138)
at
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:680)
ERROR 15:33:43,525 Error occurred during processing of message.
java.lang.RuntimeException: java.util.concurrent.ExecutionException:
java.lang.AssertionError
at
org.apache.cassandra.utils.FBUtilities.waitOnFuture(FBUtilities.java:372)
at
org.apache.cassandra.service.MigrationManager.announce(MigrationManager.java:191)
at
org.apache.cassandra.service.MigrationManager.announceNewKeyspace(MigrationManager.java:129)
at
org.apache.cassandra.thrift.CassandraServer.system_add_keyspace(CassandraServer.java:987)
at
org.apache.cassandra.thrift.Cassandra$Processor$system_add_keyspace.getResult(Cassandra.java:3370)
at
org.apache.cassandra.thrift.Cassandra$Processor$system_add_keyspace.getResult(Cassandra.java:3358)
at org.apache.thrift.ProcessFunction.process(ProcessFunction.java:32)
at org.apache.thrift.TBaseProcessor.process(TBaseProcessor.java:34)
at
org.apache.cassandra.thrift.CustomTThreadPoolServer$WorkerProcess.run(CustomTThreadPoolServer.java:186)
at
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:680)
Caused by: java.util.concurrent.ExecutionException: java.lang.AssertionError
at java.util.concurrent.FutureTask$Sync.innerGet(FutureTask.java:222)
at java.util.concurrent.FutureTask.get(FutureTask.java:83)
at
org.apache.cassandra.utils.FBUtilities.waitOnFuture(FBUtilities.java:368)
... 11 more
Caused by: java.lang.AssertionError
at org.apache.cassandra.db.DefsTable.updateKeyspace(DefsTable.java:441)
at org.apache.cassandra.db.DefsTable.mergeKeyspaces(DefsTable.java:339)
at org.apache.cassandra.db.DefsTable.mergeSchema(DefsTable.java:269)
at
org.apache.cassandra.service.MigrationManager$1.call(MigrationManager.java:214)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
at java.util.concurrent.FutureTask.run(FutureTask.java:138)
... 3 more
}}
> keyspaces missing after restart
> -------------------------------
>
> Key: CASSANDRA-4235
> URL: https://issues.apache.org/jira/browse/CASSANDRA-4235
> Project: Cassandra
> Issue Type: Bug
> Components: Core
> Affects Versions: 1.1.0
> Environment: ubuntu
> Reporter: David Hawthorne
> Priority: Critical
> Attachments: cassandra.log
>
>
> After restarting cassandra, the only keyspace that exists is the system
> keyspace. All data files are still there for other keyspaces, though.
> The issue was also described here:
> http://www.mail-archive.com/[email protected]/msg22231.html
--
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