We are trying to run Cortex project which is using gocql library for Cassandra backend
What did you expect to see?
Application inserting rows into backend(AWS Keyspaces Cassandra) successfully without any errors
What did you see instead?
We have 2 keyspaces(development and staging) in the same region and two separate users with permissions for each keyspace.
We can see that from time to time Cortex in staging environment is trying to insert rows in development keyspace.
In order to debug the issue we added a QueryObserver to understand what is going on, this is the ObservedQuery object that the observer receives:
From the output we can see that keyspace is uswest2_staging_cortex but in the Err field we can see that it's complaining about uswest2_development_cortex keyspace.
Hmm. Interesting issue. How do you set the keyspace? Do you use ClusterConfig.Keyspace? It would help to see network capture of the request in this case to see what the driver sent.
Please answer these questions before submitting your issue. Thanks!
What version of Cassandra are you using?
AWS Keyspaces
What version of Gocql are you using?
github.com/gocql/gocql v0.0.0-20200526081602-cd04bd7f22a7
What did you do?
We are trying to run Cortex project which is using gocql library for Cassandra backend
What did you expect to see?
Application inserting rows into backend(AWS Keyspaces Cassandra) successfully without any errors
What did you see instead?
We have 2 keyspaces(development and staging) in the same region and two separate users with permissions for each keyspace. We can see that from time to time Cortex in staging environment is trying to insert rows in development keyspace.
In order to debug the issue we added a
QueryObserver
to understand what is going on, this is theObservedQuery
object that the observer receives:From the output we can see that keyspace is
uswest2_staging_cortex
but in theErr
field we can see that it's complaining aboutuswest2_development_cortex
keyspace.