mesosphere / tweeter

A tiny Twitter clone for DC/OS
67 stars 42 forks source link

Updates app to work with a newer version of the datastax Ruby client #21

Closed kow3ns closed 8 years ago

orsenthil commented 8 years ago

Hi @kow3ns , why was this upgrade required in the first place? Did something change in DCOS that forces us to do this update?

kow3ns commented 8 years ago

Cassandra was upgraded to 3.x and the previous client only speaks CQL v 2.x

orsenthil commented 8 years ago

Thank you. (was hunting to looking at that change. Perhaps this one: https://github.com/mesosphere/dcos-cassandra-service/commit/364101c28b2caf2c5abd6053b2c713ccb49e9bf4 )

orsenthil commented 8 years ago

I am running into a new issue with Cassandra.

java.lang.RuntimeException: java.util.concurrent.ExecutionException: org.apache.cassandra.exceptions.ConfigurationException: Column family ID mismatch (found 15219b30-7492-11e6-86ba-dbd2dd630031; expected 14f3fb80-7492-11e6-86ba-dbd2dd630031)
    at org.apache.cassandra.utils.FBUtilities.waitOnFuture(FBUtilities.java:384) ~[apache-cassandra-3.0.7.jar:3.0.7]
    at org.apache.cassandra.service.MigrationManager.announce(MigrationManager.java:513) ~[apache-cassandra-3.0.7.jar:3.0.7]
    at org.apache.cassandra.service.MigrationManager.announceNewColumnFamily(MigrationManager.java:343) ~[apache-cassandra-3.0.7.jar:3.0.7]
    at org.apache.cassandra.service.MigrationManager.announceNewColumnFamily(MigrationManager.java:313) ~[apache-cassandra-3.0.7.jar:3.0.7]
    at org.apache.cassandra.cql3.statements.CreateTableStatement.announceMigration(CreateTableStatement.java:87) ~[apache-cassandra-3.0.7.jar:3.0.7]
    at org.apache.cassandra.cql3.statements.SchemaAlteringStatement.execute(SchemaAlteringStatement.java:93) ~[apache-cassandra-3.0.7.jar:3.0.7]
    at org.apache.cassandra.cql3.QueryProcessor.processStatement(QueryProcessor.java:206) ~[apache-cassandra-3.0.7.jar:3.0.7]
    at org.apache.cassandra.cql3.QueryProcessor.process(QueryProcessor.java:237) ~[apache-cassandra-3.0.7.jar:3.0.7]
    at org.apache.cassandra.cql3.QueryProcessor.process(QueryProcessor.java:222) ~[apache-cassandra-3.0.7.jar:3.0.7]
    at org.apache.cassandra.transport.messages.QueryMessage.execute(QueryMessage.java:115) ~[apache-cassandra-3.0.7.jar:3.0.7]
    at org.apache.cassandra.transport.Message$Dispatcher.channelRead0(Message.java:507) [apache-cassandra-3.0.7.jar:3.0.7]
    at org.apache.cassandra.transport.Message$Dispatcher.channelRead0(Message.java:401) [apache-cassandra-3.0.7.jar:3.0.7]
    at io.netty.channel.SimpleChannelInboundHandler.channelRead(SimpleChannelInboundHandler.java:105) [netty-all-4.0.23.Final.jar:4.0.23.Final]
    at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:333) [netty-all-4.0.23.Final.jar:4.0.23.Final]
    at io.netty.channel.AbstractChannelHandlerContext.access$700(AbstractChannelHandlerContext.java:32) [netty-all-4.0.23.Final.jar:4.0.23.Final]
    at io.netty.channel.AbstractChannelHandlerContext$8.run(AbstractChannelHandlerContext.java:324) [netty-all-4.0.23.Final.jar:4.0.23.Final]
    at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [na:1.8.0_74]
    at org.apache.cassandra.concurrent.AbstractLocalAwareExecutorService$FutureTask.run(AbstractLocalAwareExecutorService.java:164) [apache-cassandra-3.0.7.jar:3.0.7]
    at org.apache.cassandra.concurrent.SEPWorker.run(SEPWorker.java:105) [apache-cassandra-3.0.7.jar:3.0.7]
    at java.lang.Thread.run(Thread.java:745) [na:1.8.0_74]
Caused by: java.util.concurrent.ExecutionException: org.apache.cassandra.exceptions.ConfigurationException: Column family ID mismatch (found 15219b30-7492-11e6-86ba-dbd2dd630031; expected 14f3fb80-7492-11e6-86ba-dbd2dd630031)
    at java.util.concurrent.FutureTask.report(FutureTask.java:122) ~[na:1.8.0_74]
    at java.util.concurrent.FutureTask.get(FutureTask.java:192) ~[na:1.8.0_74]
    at org.apache.cassandra.utils.FBUtilities.waitOnFuture(FBUtilities.java:380) ~[apache-cassandra-3.0.7.jar:3.0.7]
    ... 19 common frames omitted
Caused by: org.apache.cassandra.exceptions.ConfigurationException: Column family ID mismatch (found 15219b30-7492-11e6-86ba-dbd2dd630031; expected 14f3fb80-7492-11e6-86ba-dbd2dd630031)

I am not sure what's happening here. This is just after the cassandra deploy with this change and I can see this in the node_0 logs in dcos.

orsenthil commented 8 years ago

The previous error that I noted was due to lack of resources for cassandra in my cluster. Once I added enough agent nodes, I was able to deploy tweeter service with this change.

LGTM.