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

Cosmos DB: perform read for consistency when deleting state which is expected to not exist #8700

Merged

Conversation

ReubenBond
Copy link
Member

@ReubenBond ReubenBond commented Nov 1, 2023

Currently, when DeleteStateOnClear is set, deleting state which is expected to not exist (eg, deleting state twice in succession) is a no-op. Instead, for consistency, we should perform a read when state is expected to not exist.

Microsoft Reviewers: Open in CodeFlow

@ReubenBond ReubenBond merged commit 938dde3 into dotnet:main Nov 3, 2023
19 checks passed
@ReubenBond ReubenBond deleted the fix/cosmos-delete-state-consistency-check branch November 3, 2023 16:28
@github-actions github-actions bot locked and limited conversation to collaborators Dec 4, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant