question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Errors with cassandra storage after upgrading to 2.0.0

See original GitHub issue

We just attempted an upgrade to 2.0.0 using the docker container running in kubernetes. We use cassandra storage backend, which was successful up until this upgrade. The pod appears to dump the following every 10 seconds. This happens across multiple restarts of the pod

WARN [2019-12-06 20:15:38,520] [main] i.c.s.CassandraStorage - Customization of cassandra's retry policy is not supported and will be overridden INFO [2019-12-06 20:15:38,520] [main] c.d.d.c.ClockFactory - Using native clock to generate timestamps. INFO [2019-12-06 20:15:38,563] [main] c.d.d.c.p.DCAwareRoundRobinPolicy - Using data-center name 'datacenter1' for DCAwareRoundRobinPolicy (if this is incorrect, please provide the correct datacenter name with DCAwareRoundRobinPolicy constructor) INFO [2019-12-06 20:15:38,564] [main] c.d.d.c.Cluster - New Cassandra host XXXXXXX INFO [2019-12-06 20:15:38,564] [main] c.d.d.c.Cluster - New Cassandra host XXXXXXX INFO [2019-12-06 20:15:38,564] [main] c.d.d.c.Cluster - New Cassandra host XXXXXXX WARN [2019-12-06 20:15:38,567] [main] c.d.d.c.CodecRegistry - Ignoring codec DateTimeCodec [timestamp <-> org.joda.time.DateTime] because it collides with previously registered codec DateTimeCodec [timestamp <-> org.joda.time.DateTime] INFO [2019-12-06 20:15:38,592] [main] o.c.c.m.MigrationRepository - Found 8 migration scripts INFO [2019-12-06 20:15:38,592] [main] i.c.s.CassandraStorage - Keyspace reaper_db already at schema version 23 ERROR [2019-12-06 20:15:38,615] [main] i.c.ReaperApplication - Storage is not ready yet, trying again to connect shortly... com.datastax.driver.core.exceptions.InvalidQueryException: Undefined column name nodes at com.datastax.driver.core.exceptions.InvalidQueryException.copy(InvalidQueryException.java:49) at com.datastax.driver.core.DriverThrowables.propagateCause(DriverThrowables.java:35) at com.datastax.driver.core.AbstractSession.prepare(AbstractSession.java:86) at io.cassandrareaper.storage.CassandraStorage.prepareStatements(CassandraStorage.java:434) at io.cassandrareaper.storage.CassandraStorage.<init>(CassandraStorage.java:228) at io.cassandrareaper.ReaperApplication.initializeStorage(ReaperApplication.java:439) at io.cassandrareaper.ReaperApplication.tryInitializeStorage(ReaperApplication.java:310) at io.cassandrareaper.ReaperApplication.run(ReaperApplication.java:172) at io.cassandrareaper.ReaperApplication.run(ReaperApplication.java:91) at io.dropwizard.cli.EnvironmentCommand.run(EnvironmentCommand.java:43) at io.dropwizard.cli.ConfiguredCommand.run(ConfiguredCommand.java:87) at io.dropwizard.cli.Cli.run(Cli.java:78) at io.dropwizard.Application.run(Application.java:93) at io.cassandrareaper.ReaperApplication.main(ReaperApplication.java:110) Caused by: com.datastax.driver.core.exceptions.InvalidQueryException: Undefined column name nodes at com.datastax.driver.core.Responses$Error.asException(Responses.java:181)

Is there a missing schema migration that we need to apply?

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:7 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
adejanovskicommented, Dec 7, 2019

It just striked me that you may be upgrading from a 1.5 beta version of Reaper, where existed an old version of migration 23, which had a different schema for the diagnostic_event_subscription table. As you can see here, the include_nodes was renamed to nodes at some point. Your solution here will be to drop and recreate the table as suggested before. Let me know if that’s the case.

0reactions
adejanovskicommented, Dec 12, 2019

Thanks

Read more comments on GitHub >

github_iconTop Results From Across the Web

7 mistakes when using Apache Cassandra | by Michał Matłoka
Cassandra is not perfect for every project, there are many mistakes which can be made when working with it. Let's analyze a few...
Read more >
Upgrading Cassandra from 1.2.10 to 2.0.1 - Stack Overflow
We are running in 2.0.1, but some of the column familys were created using older versions of cassandra and move the data between...
Read more >
Cassandra troubleshooting guide | Apigee X - Google Cloud
This error indicates that the Cassandra pod has a persistent volume that has data from a previous cluster, and the new pods are...
Read more >
Repair | Apache Cassandra Documentation
Since repair can result in a lot of disk and network io, it's not run automatically by Cassandra. It is run by the...
Read more >
Upgrading to DataStax Enterprise 5.0
Warning messages during and after upgrade. Apache Cassandra™ version change. Upgrading from DataStax Enterprise 4.7 or 4.8 to 5.0 includes a major Cassandra...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found