Skip to content

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