Open tadchristiansen opened 1 year ago
Hello,
I am not sure if this warning can be avoided from your end. The reason is that the Database executes a "use keyspace" statement. This is required if you would start with an empty database and use cassandra migration to create the keyspace in the first place. After it is created you need to use it if you do not want to rely for all scripts to always put the keyspace before the table name.
I can investigate if it is possible to check if we are already in the keyspace we want to modify and not always execute the "use keyspace" statement.
That being said, I would not configure Cassandra to not print this warning. In this context you know why the warning is coming but if you see it again outside of the context of Cassandra Migration it would be a good thing to investigate it further.
Cheers
More context around the log:
The application.conf docs here: https://java-driver.docs.scylladb.com/stable/manual/core/configuration/reference/README.html Say:
The referenced per-request docs for Scylla (Cassandra compatible) are here https://java-driver.docs.scylladb.com/stable/manual/core/statements/per_query_keyspace/
Is there a better way to get rid of this warning?