Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Cherry-pick: Acquire workflow lock during backfill history (#6088) #6102

Merged
merged 1 commit into from
Jun 10, 2024

Conversation

yux0
Copy link
Contributor

@yux0 yux0 commented Jun 10, 2024

What changed?

Acquire workflow lock during backfill history

Why?

Stream replication processes WorkflowRun concurrently. This could lead to concurrent append history node on same node id and write dirty history node into the table.

How did you test it?

Potential risks

Documentation

Is hotfix candidate?

## What changed?
Acquire workflow lock during backfill history

## Why?
Stream replication processes WorkflowRun concurrently. This could lead
to concurrent append history node on same node id and write dirty
history node into the table.

## How did you test it?
<!-- How have you verified this change? Tested locally? Added a unit
test? Checked in staging env? -->

## Potential risks
<!-- Assuming the worst case, what can be broken when deploying this
change to production? -->

## Documentation
<!-- Have you made sure this change doesn't falsify anything currently
stated in `docs/`? If significant
new behavior is added, have you described that in `docs/`? -->

## Is hotfix candidate?
<!-- Is this PR a hotfix candidate or does it require a notification to
be sent to the broader community? (Yes/No) -->
@yux0 yux0 requested a review from kevinkyyro June 10, 2024 16:59
@yux0 yux0 requested a review from a team as a code owner June 10, 2024 16:59
@yux0 yux0 merged commit 9c21008 into temporalio:release/v1.24.x Jun 10, 2024
41 checks passed
@yux0 yux0 deleted the release/v1.24.x-backfill-race branch June 10, 2024 20:08
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants