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

Use the correct event version for task refresh #4349

Merged
merged 3 commits into from May 16, 2023

Conversation

yux0
Copy link
Contributor

@yux0 yux0 commented May 16, 2023

What changed?
Use the correct event version for task refresh

Why?
It needs the correct history event id and event version to read the history. We should use the version from version history as the pending activity info version could be updated in retry.

How did you test it?
Existing tests.

Potential risks

Is hotfix candidate?

@yux0 yux0 requested review from yycptt and wxing1292 May 16, 2023 19:55
@yux0 yux0 requested a review from a team as a code owner May 16, 2023 19:55
childWorkflowInfo.InitiatedEventBatchId,
currentBranchToken,
)
mutableState.GetChildExecutionInitiatedEvent(ctx, childWorkflowInfo.InitiatedEventId)
Copy link
Member

Choose a reason for hiding this comment

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

remove duplicated call.

@yux0 yux0 merged commit b9a9029 into temporalio:master May 16, 2023
10 checks passed
@yux0 yux0 deleted the fix-task-refresh branch May 16, 2023 22:52
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

2 participants