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

Don't replay commands from non-completed task #1750

Merged
merged 16 commits into from
Feb 3, 2025

Conversation

yuandrew
Copy link
Contributor

@yuandrew yuandrew commented Dec 9, 2024

What was changed

Skip any commands that aren't a part of a completed WFT (a.k.a. if WFT start is the last event)

Why?

Fix issue where we're hitting NDE when we shouldn't be.

Checklist

  1. Closes Erroneous extra replay command when replaying mid-workflow tasks #1670

  2. How was this tested:

Added new test

  1. Any docs updates needed?

@yuandrew yuandrew requested a review from a team as a code owner December 9, 2024 23:03
Copy link
Member

@cretz cretz left a comment

Choose a reason for hiding this comment

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

Can you add an integration test that has a full history that replays successfully in the replayer, then confirm it continually succeeds in a replayer popping one event off the end each time?

Also, would like @Quinn-With-Two-Ns to look at this PR when he's available before we merge.

@yuandrew yuandrew merged commit 8f05d01 into temporalio:master Feb 3, 2025
13 checks passed
@yuandrew yuandrew deleted the erroneous-replay-fix branch February 3, 2025 21:32
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.

Erroneous extra replay command when replaying mid-workflow tasks
3 participants