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

MySQL state store changes order of transaction #1521

Closed
shubham1172 opened this issue Feb 22, 2022 · 1 comment · Fixed by #1523
Closed

MySQL state store changes order of transaction #1521

shubham1172 opened this issue Feb 22, 2022 · 1 comment · Fixed by #1523
Assignees
Labels
kind/bug Something isn't working
Milestone

Comments

@shubham1172
Copy link
Member

Similar to #1209

Expected Behavior

For the following transaction:

upsert key1 value1
delete key1
upsert key2 value2

Expectation is that key1 should be deleted, key2 should have a value of value2.

Actual Behavior

Both key1:value1 and key2:value2 are present.

Steps to Reproduce the Problem

Please use the JS snipped from the reference issue (1209)

Details

Under the hood, MySQL store attempts all the deletions first, followed by all the upserts. This changes the actual ordering of operations within the transaction, giving wrong results.

Release Note

RELEASE NOTE: FIX MySQL state store's transaction API to respect order of operations.

@shubham1172
Copy link
Member Author

/assign

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

Successfully merging a pull request may close this issue.

2 participants