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

Fix continue-as-new data corruption issue #150

Merged
merged 2 commits into from
Feb 2, 2023
Merged

Fix continue-as-new data corruption issue #150

merged 2 commits into from
Feb 2, 2023

Conversation

cgillum
Copy link
Member

@cgillum cgillum commented Feb 2, 2023

Fixes #146

An issue was discovered where certain message payloads were being lost in certain situations. The root cause ended up being overaggressive purge logic in the SQL stored procedures when an orchestration (or entity) does a ContinueAsNew.

This PR updates the ContinueAsNew T-SQL logic to be more selective in what data it deletes to ensure that unprocessed events are not impacted. This PR also adds a new test-case that was previously able to reproduce the issue reliably.

@cgillum cgillum added this to the v1.1.1 milestone Feb 2, 2023
@cgillum cgillum self-assigned this Feb 2, 2023
@cgillum cgillum merged commit a0a6a5f into main Feb 2, 2023
@cgillum cgillum deleted the fix146 branch February 2, 2023 19:38
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.

NullReferenceException when calling an entity from a sub-orchestration after signaling
1 participant