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

improve error msg, too many indexes and can not create a collection #831

Merged
merged 5 commits into from
Jan 24, 2024

Conversation

Yuqi-Du
Copy link
Contributor

@Yuqi-Du Yuqi-Du commented Jan 24, 2024

What this PR does:
Improve error msg when there is too many indexes in db, and can not create a json api collection
Fix: {"message": "Too many indexes: cannot create a new collection; need 10 indexes to create the collection; 44 indexes already created in database, maximum 50", "errorCode": "TOO_MANY_INDEXES"}

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

Checklist

  • Changes manually tested
  • Automated Tests added/updated
  • Documentation added/updated
  • CLA Signed: DataStax CLA

@Yuqi-Du Yuqi-Du requested a review from a team as a code owner January 24, 2024 17:51
Copy link
Contributor

@tatu-at-datastax tatu-at-datastax left a comment

Choose a reason for hiding this comment

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

Looks good; added one improvement suggestion.

@Yuqi-Du Yuqi-Du merged commit 0e23094 into main Jan 24, 2024
2 checks passed
@Yuqi-Du Yuqi-Du deleted the too_many_indexes_error_msg branch January 24, 2024 22:48
Copy link
Collaborator

@vkarpov15 vkarpov15 left a comment

Choose a reason for hiding this comment

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

LGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Create collection error message is confusing
3 participants