temporalio / temporalio/temporal

ActivityStateReplicator should trigger history resend when mutable state is no found

Open
#6,144 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

potential-bug
Dominant language
Go
Stars
23.2k
Forks
1.9k
Avg merge
2d 8h
Merged PRs (30d)
228

Description

Expected Behavior

  • Sync activity replication task should create the workflow if not found in the target cluster.

Actual Behavior

Solution

  • Return a RetryReplication error instead off nil to trigger history resend. History resender can handler the case where the workflow no longer existing in the source cluster.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start at service/history/ndc/activity_state_replicator.go around line 222 and trace how a missing workflow is handled during activity replication. Change the missing-state path to return a RetryReplication error rather than nil, so the history resender can retry it. Done means the sync task triggers a history resend and creates the workflow in the target cluster when it is missing.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
distributed-systems
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.