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

Fixes Internal Server Error returned on simultaneous SignalWithStart requests for the same WF ID #719

Merged
merged 2 commits into from
Sep 10, 2020

Conversation

mastermanu
Copy link
Member

This PR fixes a bug where simultaneous SignalWithStart requests for the same WorkflowID randomly results in one of them failing with a "Workflow Execution Already Started Error." This error does not make sense given that SignalWithStart is supposed to seamlessly handle both the case where the WF is already running and the case where it needs to be created.

Our throughput stress scenario easily reproduces this issue in the one box environment. The issue stopped reproducing once this change was integrated.

This is a relatively low-risk change. We only retry under certain error conditions that we expect to be transient, and in the worst case, we keep retrying until the request times out.

Copy link
Contributor

@samarabbas samarabbas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One minor comment. Looks good otherwise.

@mastermanu mastermanu merged commit acbb6a5 into temporalio:master Sep 10, 2020
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.

2 participants