Skip to content
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

Honor configured Cassandra consistency when creating the keyspace #3105

Conversation

pracucci
Copy link
Contributor

What this PR does:
I have no experience with Cassandra, so I'm not sure this change makes sense. An user reported #3089 that creating the keyspace is failing with the following error regardless of the configured consistency:

level=info ts=2020-08-26T09:57:42.662955911Z caller=server.go:179 http=[::]:8080 grpc=[::]:9095 msg="server listening on addresses" 2020-08-26 09:57:42.851338 I | error: failed to connect to 3.248.244.24:9142 due to error: Consistency level ANY is not supported for this operation. Supported consistency levels are: ONE, LOCAL_QUORUM, LOCAL_ONE

I've noticed we don't set the configured consistency when creating the session to create the keyspace so I'm wondering if honoring it would fix the issue.

Which issue(s) this PR fixes:
Fixes #3089

Checklist

  • Tests updated
  • Documentation added
  • CHANGELOG.md updated - the order of entries should be [CHANGE], [FEATURE], [ENHANCEMENT], [BUGFIX]

Signed-off-by: Marco Pracucci <marco@pracucci.com>
Copy link
Contributor

@jtlisi jtlisi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@pracucci pracucci merged commit 5ede363 into cortexproject:master Sep 14, 2020
@pracucci pracucci deleted the honor-configured-cassandra-consistency-when-creating-keyspace branch September 14, 2020 08:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Cortex with aws managed cassandra (Amazon Keyspaces)
4 participants