-
Notifications
You must be signed in to change notification settings - Fork 4.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cassandra DB plugin List Users errors for DC failures #3438
Comments
Given that this is a normal CQL query, isn't this an upstream issue? |
Yes I agree and we reached out to our Cassandra vendor but apparently some DDL like statements intentionally use Quorum and it was their suggestion to use Select if we need to leverage consistency |
Anything you can forward our way? I don't know much about Cassandra so I'd want to be sure that |
Actually I'm reading that it may not be the same Select across C* versions. I see that the query works on cqlsh 3.0 but need to see if it works on lower versions. Let me get back to you. |
Thinking about it a little more, do we need to do a list users or a equivalent. Think the purpose here is to validate if the C* session is good and wouldn't any Select cql be good ? |
If you are just doing connectivity test by using created credentials, it's worth to go route of generic CQL query test.. I can easily share CQL which can work in both versions, let me know please. |
Jeff, https://docs.datastax.com/en/cql/3.3/cql/cql_reference/cqlListUsers.html We found that 'List ALL' appears to work across all versions. It provides the list of users and also appears to use the consistency level we specify. We are confirming with our vendor if List ALL will most definitely work across all versions |
Just got a confirmation from our vendor that List ALL works on all versions and lists all the users. |
So what is the appropriate CQL? |
List ALL |
The capitalization on that makes me think that's not the real CQL. Can you submit a PR? |
Jeff, |
Jeff, |
Closed by #3469 |
Thanks Jeff. Do we have an ETA for 0.8.4 ? |
Early November. |
List Users in Cassandra appears to use Quorum and ignores the consistency level specified during connection creation. This causes the connection validation to fail when Quorum is not met. Replacing List Users with Select role,is_superuser from system_auth.roles will resolve the issue as the select query would use the consistency level specified during connection config.
The text was updated successfully, but these errors were encountered: