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

First write state store creation edge case is last win #3687

Open
killbill-10 opened this issue Mar 8, 2025 · 0 comments
Open

First write state store creation edge case is last win #3687

killbill-10 opened this issue Mar 8, 2025 · 0 comments
Labels
kind/bug Something isn't working

Comments

@killbill-10
Copy link

killbill-10 commented Mar 8, 2025

In Redis and MS SQL state store, I use first-write option. However, if 2 processes create at the same time, the second creation will override the first creation.

Redis first-write should use Redis SetNX.

MS SQL first-write should NOT use upsert. It should fail one insert is fail with duplicated primary key.

Dapr should let the backing services to manage first-write natively.

@killbill-10 killbill-10 added the kind/bug Something isn't working label Mar 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant