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

index creation failure msg, usage with collection not fully indexed #879

Merged
merged 9 commits into from
Feb 20, 2024

Conversation

Yuqi-Du
Copy link
Contributor

@Yuqi-Du Yuqi-Du commented Feb 15, 2024

There are chances of the collection creation is successful, but not fully indexed.
Even though we now get less failures because index creation changes into serial execution.
This PR will throw a JsonApiException, when there is table creation failure or index creation failure.
Also, if user is using a not fully indexed collection, also prompt with proper error msgs.

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

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 February 15, 2024 17:43
Copy link
Contributor

@jeffreyscarpenter jeffreyscarpenter left a comment

Choose a reason for hiding this comment

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

minor suggestion

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.

I like improvements here, but I think we can probably improve on wording & inclusion of information (collection name should be included in all, I think). And for "missing index" case indicate it as such (instead of suggesting operation that failed was create-collection -- if I understood logic correctly).

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.

LGTM

@Yuqi-Du Yuqi-Du merged commit 84781df into main Feb 20, 2024
2 checks passed
@Yuqi-Du Yuqi-Du deleted the index-failure branch February 20, 2024 20:29
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.

Invalid request / allow filtering error on find command (due to failed index creation for createCollection)
4 participants