[jira] [Commented] (CASSANDRA-11154) CassandraDaemon in Managed mode fails to be restartable
[ https://issues.apache.org/jira/browse/CASSANDRA-11154?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15245408#comment-15245408 ] Achim Nierbeck commented on CASSANDRA-11154: OK, so lets close this one then. Will start and end the cassandra in an extra process. > CassandraDaemon in Managed mode fails to be restartable > --- > > Key: CASSANDRA-11154 > URL: https://issues.apache.org/jira/browse/CASSANDRA-11154 > Project: Cassandra > Issue Type: Bug >Reporter: Achim Nierbeck > Fix For: 3.x > > Attachments: CASSANDRA-11154_patch.txt > > > Restarting the CassandraDeamon in managed mode fails to restart due to > duplicate migration of already migrated keyspaces. > To reproduce this, just do something like in this test class: > https://github.com/ANierbeck/Karaf-Cassandra/blob/master/Karaf-Cassandra-Embedded/src/test/java/de/nierbeck/cassandra/embedded/TestEmbedded.java -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Commented] (CASSANDRA-11154) CassandraDaemon in Managed mode fails to be restartable
[ https://issues.apache.org/jira/browse/CASSANDRA-11154?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15224955#comment-15224955 ] Achim Nierbeck commented on CASSANDRA-11154: Hmm, ok. Well it did work with 2.x line, maybe I'll need to work around this with starting an extra process then. > CassandraDaemon in Managed mode fails to be restartable > --- > > Key: CASSANDRA-11154 > URL: https://issues.apache.org/jira/browse/CASSANDRA-11154 > Project: Cassandra > Issue Type: Bug >Reporter: Achim Nierbeck > Fix For: 3.x > > Attachments: CASSANDRA-11154_patch.txt > > > Restarting the CassandraDeamon in managed mode fails to restart due to > duplicate migration of already migrated keyspaces. > To reproduce this, just do something like in this test class: > https://github.com/ANierbeck/Karaf-Cassandra/blob/master/Karaf-Cassandra-Embedded/src/test/java/de/nierbeck/cassandra/embedded/TestEmbedded.java -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Commented] (CASSANDRA-11154) CassandraDaemon in Managed mode fails to be restartable
[ https://issues.apache.org/jira/browse/CASSANDRA-11154?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15224948#comment-15224948 ] Aleksey Yeschenko commented on CASSANDRA-11154: --- Oh, and C* is definitely *not* designed to be in-memory restartable. There are many singletons that would preserve state between restarts, {{Schema}} being just one of the many. I'm actually not sure that a patch for just this ticket would really help you, and not just hide one symptom of larger problems in the system. What I can do is provide a slightly better custom patch, but that logic wouldn't make much sense to someone - and that change alone will most definitely not make CassandraDaemon restartable, unfortunately. That would require a lot more effort. > CassandraDaemon in Managed mode fails to be restartable > --- > > Key: CASSANDRA-11154 > URL: https://issues.apache.org/jira/browse/CASSANDRA-11154 > Project: Cassandra > Issue Type: Bug >Reporter: Achim Nierbeck > Fix For: 3.x > > Attachments: CASSANDRA-11154_patch.txt > > > Restarting the CassandraDeamon in managed mode fails to restart due to > duplicate migration of already migrated keyspaces. > To reproduce this, just do something like in this test class: > https://github.com/ANierbeck/Karaf-Cassandra/blob/master/Karaf-Cassandra-Embedded/src/test/java/de/nierbeck/cassandra/embedded/TestEmbedded.java -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Commented] (CASSANDRA-11154) CassandraDaemon in Managed mode fails to be restartable
[ https://issues.apache.org/jira/browse/CASSANDRA-11154?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15224916#comment-15224916 ] Aleksey Yeschenko commented on CASSANDRA-11154: --- Thanks for the stack trace. You almost guessed the issue, but not quite. It's just that old schema tables (system.schema_*) are unloaded from memory by then. The easiest fix would be to check if system.schema_* tables are in {{Schema}} and not attempt if they aren't. None of it is a problem for Cassandra-proper, it really works as it's designed to. C* is not *really* built for being embeddable, so there have to be many issues like that in embedded mode. That said, I can put in an easy fix for just this one problem (but you'll have to test the patch). > CassandraDaemon in Managed mode fails to be restartable > --- > > Key: CASSANDRA-11154 > URL: https://issues.apache.org/jira/browse/CASSANDRA-11154 > Project: Cassandra > Issue Type: Bug >Reporter: Achim Nierbeck > Fix For: 3.x > > Attachments: CASSANDRA-11154_patch.txt > > > Restarting the CassandraDeamon in managed mode fails to restart due to > duplicate migration of already migrated keyspaces. > To reproduce this, just do something like in this test class: > https://github.com/ANierbeck/Karaf-Cassandra/blob/master/Karaf-Cassandra-Embedded/src/test/java/de/nierbeck/cassandra/embedded/TestEmbedded.java -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Commented] (CASSANDRA-11154) CassandraDaemon in Managed mode fails to be restartable
[ https://issues.apache.org/jira/browse/CASSANDRA-11154?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15224803#comment-15224803 ] Achim Nierbeck commented on CASSANDRA-11154: {code} org.apache.cassandra.exceptions.InvalidRequestException: unconfigured table schema_keyspaces at org.apache.cassandra.thrift.ThriftValidation.validateColumnFamily(ThriftValidation.java:114) at org.apache.cassandra.cql3.statements.SelectStatement$RawStatement.prepare(SelectStatement.java:812) at org.apache.cassandra.cql3.statements.SelectStatement$RawStatement.prepare(SelectStatement.java:807) at org.apache.cassandra.cql3.QueryProcessor.getStatement(QueryProcessor.java:505) at org.apache.cassandra.cql3.QueryProcessor.parseStatement(QueryProcessor.java:242) at org.apache.cassandra.cql3.QueryProcessor.executeOnceInternal(QueryProcessor.java:337) at org.apache.cassandra.schema.LegacySchemaMigrator.query(LegacySchemaMigrator.java:913) at org.apache.cassandra.schema.LegacySchemaMigrator.readSchema(LegacySchemaMigrator.java:173) at org.apache.cassandra.schema.LegacySchemaMigrator.migrate(LegacySchemaMigrator.java:77) at org.apache.cassandra.service.CassandraDaemon.setup(CassandraDaemon.java:223) at org.apache.cassandra.service.CassandraDaemon.activate(CassandraDaemon.java:551) {code} > CassandraDaemon in Managed mode fails to be restartable > --- > > Key: CASSANDRA-11154 > URL: https://issues.apache.org/jira/browse/CASSANDRA-11154 > Project: Cassandra > Issue Type: Bug >Reporter: Achim Nierbeck > Fix For: 3.x > > Attachments: CASSANDRA-11154_patch.txt > > > Restarting the CassandraDeamon in managed mode fails to restart due to > duplicate migration of already migrated keyspaces. > To reproduce this, just do something like in this test class: > https://github.com/ANierbeck/Karaf-Cassandra/blob/master/Karaf-Cassandra-Embedded/src/test/java/de/nierbeck/cassandra/embedded/TestEmbedded.java -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Commented] (CASSANDRA-11154) CassandraDaemon in Managed mode fails to be restartable
[ https://issues.apache.org/jira/browse/CASSANDRA-11154?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15224231#comment-15224231 ] Aleksey Yeschenko commented on CASSANDRA-11154: --- What's the exact exceptions that's being thrown? > CassandraDaemon in Managed mode fails to be restartable > --- > > Key: CASSANDRA-11154 > URL: https://issues.apache.org/jira/browse/CASSANDRA-11154 > Project: Cassandra > Issue Type: Bug >Reporter: Achim Nierbeck > Fix For: 3.x > > Attachments: CASSANDRA-11154_patch.txt > > > Restarting the CassandraDeamon in managed mode fails to restart due to > duplicate migration of already migrated keyspaces. > To reproduce this, just do something like in this test class: > https://github.com/ANierbeck/Karaf-Cassandra/blob/master/Karaf-Cassandra-Embedded/src/test/java/de/nierbeck/cassandra/embedded/TestEmbedded.java -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Commented] (CASSANDRA-11154) CassandraDaemon in Managed mode fails to be restartable
[ https://issues.apache.org/jira/browse/CASSANDRA-11154?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15224183#comment-15224183 ] Aleksey Yeschenko commented on CASSANDRA-11154: --- Sorry for a super long delay. The patch will have to be updated, for it's not the cleanest workaround for your problem. I'll update you shortly. > CassandraDaemon in Managed mode fails to be restartable > --- > > Key: CASSANDRA-11154 > URL: https://issues.apache.org/jira/browse/CASSANDRA-11154 > Project: Cassandra > Issue Type: Bug >Reporter: Achim Nierbeck > Fix For: 3.x > > Attachments: CASSANDRA-11154_patch.txt > > > Restarting the CassandraDeamon in managed mode fails to restart due to > duplicate migration of already migrated keyspaces. > To reproduce this, just do something like in this test class: > https://github.com/ANierbeck/Karaf-Cassandra/blob/master/Karaf-Cassandra-Embedded/src/test/java/de/nierbeck/cassandra/embedded/TestEmbedded.java -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Commented] (CASSANDRA-11154) CassandraDaemon in Managed mode fails to be restartable
[ https://issues.apache.org/jira/browse/CASSANDRA-11154?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15223247#comment-15223247 ] Achim Nierbeck commented on CASSANDRA-11154: Is this patch acceptable, should I provide more infos/details about it? > CassandraDaemon in Managed mode fails to be restartable > --- > > Key: CASSANDRA-11154 > URL: https://issues.apache.org/jira/browse/CASSANDRA-11154 > Project: Cassandra > Issue Type: Bug >Reporter: Achim Nierbeck > Fix For: 3.x > > Attachments: CASSANDRA-11154_patch.txt > > > Restarting the CassandraDeamon in managed mode fails to restart due to > duplicate migration of already migrated keyspaces. > To reproduce this, just do something like in this test class: > https://github.com/ANierbeck/Karaf-Cassandra/blob/master/Karaf-Cassandra-Embedded/src/test/java/de/nierbeck/cassandra/embedded/TestEmbedded.java -- This message was sent by Atlassian JIRA (v6.3.4#6332)