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: PurgeOrchestration errors out when used with retryable sub-orchestrations #63

Merged
merged 2 commits into from
Jan 22, 2024

Conversation

shivamkm07
Copy link
Contributor

On trying to purge an orchestration that creates retryable sub-orchestrations, it fails with Segmentation Fault error. More details of the issue can be found here: dapr/dapr#7422

The issue happens because in case of retryable sub-orchestrations, there are multiple instances of same sub-orchestration (with same instanceId) in the orchestration state and the purge logic tries to purge each of them recursively and so fails while trying to purge a sub-orchestration again which has been already purged. The PR fixes the implementation to filter out duplicate instanceIDs while purging.

Signed-off-by: Shivam Kumar <shivamkm07@gmail.com>
@cgillum cgillum merged commit fb5c4c0 into microsoft:main Jan 22, 2024
4 checks passed
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.

None yet

3 participants