Skip to content

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
@yux0 yux0 deleted the release/v1.24.x-backfill-race branch June 10, 2024 20:08
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.

3 participants