You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by "Nicolas Lalevée (Commented JIRA)" <ji...@apache.org> on 2011/11/14 18:41:51 UTC
[jira] [Commented] (CASSANDRA-3490) Error while creating many
column families: "ConfigurationException: Previous version mismatch. cannot
apply."
[ https://issues.apache.org/jira/browse/CASSANDRA-3490?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13149773#comment-13149773 ]
Nicolas Lalevée commented on CASSANDRA-3490:
--------------------------------------------
I am effectively hit by some concurrency issue, I had this issue with 0.8. I didn't know that this error message was about schema disagreement.
Thanks for the quick reply.
> Error while creating many column families: "ConfigurationException: Previous version mismatch. cannot apply."
> -------------------------------------------------------------------------------------------------------------
>
> Key: CASSANDRA-3490
> URL: https://issues.apache.org/jira/browse/CASSANDRA-3490
> Project: Cassandra
> Issue Type: Bug
> Affects Versions: 1.0.2
> Reporter: Nicolas Lalevée
>
> Maybe a duplicate/reopen of CASSANDRA-1384
> I have a cluster of 4 cassandra nodes 1.0.2. Via the API (I'm using Hector), I create about 130 column families. On the client side I am hit with:
> {noformat}
> [junit-coverage] me.prettyprint.hector.api.exceptions.HCassandraInternalException: Cassandra encountered an internal error processing this request: TApplicationError type: 6 message:Internal error processing system_add_column_family
> [junit-coverage] at me.prettyprint.cassandra.service.ExceptionsTranslatorImpl.translate(ExceptionsTranslatorImpl.java:31) ~[hector-core-1.0-1.jar:na]
> [junit-coverage] at me.prettyprint.cassandra.service.ThriftCluster$4.execute(ThriftCluster.java:100) ~[hector-core-1.0-1.jar:na]
> [junit-coverage] at me.prettyprint.cassandra.service.ThriftCluster$4.execute(ThriftCluster.java:89) ~[hector-core-1.0-1.jar:na]
> [junit-coverage] at me.prettyprint.cassandra.service.Operation.executeAndSetResult(Operation.java:101) ~[hector-core-1.0-1.jar:na]
> [junit-coverage] at me.prettyprint.cassandra.connection.HConnectionManager.operateWithFailover(HConnectionManager.java:233) ~[hector-core-1.0-1.jar:na]
> [junit-coverage] at me.prettyprint.cassandra.service.ThriftCluster.addColumnFamily(ThriftCluster.java:104) ~[hector-core-1.0-1.jar:na]
> [junit-coverage] ......... [my application code] ..............
> {noformat}
> On the server side, I can see these line in many nodes:
> {noformat}
> ERROR 15:47:04,833 Internal error processing system_add_column_family
> java.lang.RuntimeException: java.util.concurrent.ExecutionException: org.apache.cassandra.config.ConfigurationException: Previous version mismatch. cannot apply.
> at org.apache.cassandra.thrift.CassandraServer.applyMigrationOnStage(CassandraServer.java:898)
> at org.apache.cassandra.thrift.CassandraServer.system_add_column_family(CassandraServer.java:914)
> at org.apache.cassandra.thrift.Cassandra$Processor$system_add_column_family.process(Cassandra.java:3832)
> at org.apache.cassandra.thrift.Cassandra$Processor.process(Cassandra.java:2889)
> at org.apache.cassandra.thrift.CustomTThreadPoolServer$WorkerProcess.run(CustomTThreadPoolServer.java:187)
> 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:662)
> Caused by: java.util.concurrent.ExecutionException: org.apache.cassandra.config.ConfigurationException: Previous version mismatch. cannot apply.
> at java.util.concurrent.FutureTask$Sync.innerGet(FutureTask.java:222)
> at java.util.concurrent.FutureTask.get(FutureTask.java:83)
> at org.apache.cassandra.thrift.CassandraServer.applyMigrationOnStage(CassandraServer.java:890)
> ... 7 more
> Caused by: org.apache.cassandra.config.ConfigurationException: Previous version mismatch. cannot apply.
> at org.apache.cassandra.db.migration.Migration.apply(Migration.java:100)
> at org.apache.cassandra.thrift.CassandraServer$2.call(CassandraServer.java:883)
> at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
> at java.util.concurrent.FutureTask.run(FutureTask.java:138)
> ... 3 more
> ERROR 15:47:04,834 Fatal exception in thread Thread[MigrationStage:1,5,main] org.apache.cassandra.config.ConfigurationException: Previous version mismatch. cannot apply.
> at org.apache.cassandra.db.migration.Migration.apply(Migration.java:100)
> at org.apache.cassandra.thrift.CassandraServer$2.call(CassandraServer.java:883)
> 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:662)
> {noformat}
--
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