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

Handle DOCUMENT_ALREADY_EXISTS error in insert #801

Closed
maheshrajamani opened this issue Jan 16, 2024 · 2 comments · Fixed by #802
Closed

Handle DOCUMENT_ALREADY_EXISTS error in insert #801

maheshrajamani opened this issue Jan 16, 2024 · 2 comments · Fixed by #802
Assignees

Comments

@maheshrajamani
Copy link
Contributor

Cassandra LWT sometimes throws WriteTimeoutException but the transaction may succeed. Json API has been setup to retry when WTE happens. This may result in insert failure in the retry attempt. Handle this in Insert Operation by checking if the inserted transaction ID is same as the id already available in DB.

@maheshrajamani maheshrajamani self-assigned this Jan 16, 2024
@amorton
Copy link
Contributor

amorton commented Jan 16, 2024

@maheshrajamani ah, this is clever. Can we chat about this when you are ready to start

@maheshrajamani
Copy link
Contributor Author

@maheshrajamani ah, this is clever. Can we chat about this when you are ready to start

Sure we can, I have a PR for this #802

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 a pull request may close this issue.

2 participants