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 workflow panic when workflow has multiple GetVersion calls #474

Merged

Conversation

mfesenko
Copy link
Contributor

What was changed

I changed the logic of incrementing nextCommandEventID when processing VersionMarker events to support having multiple subsequent VersionMarker events.

Why?

This fixes the issue with workflow panics on replay of a workflow that contains multiple subsequent calls to GetVersion.

Checklist

  1. Closes Workflow replay is broken if workflow contains multiple subsequent calls to GetVersion #473

  2. How was this tested:
    Updated one of the existing replay tests to have two subsequent calls to GetVersion, without the change in incrementNextCommandEventIDIfVersionMarker the test is failing.

  3. Any docs updates needed?
    No

@CLAassistant
Copy link

CLAassistant commented Jun 20, 2021

CLA assistant check
All committers have signed the CLA.

@vitarb vitarb merged commit c411d30 into temporalio:master Jun 21, 2021
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.

Workflow replay is broken if workflow contains multiple subsequent calls to GetVersion
3 participants