Skip to content

Ensure Handover state is removed during replication#10207

Merged
stuart-wells merged 10 commits into
mainfrom
stuartwells/ensurestatepropagation
May 21, 2026
Merged

Ensure Handover state is removed during replication#10207
stuart-wells merged 10 commits into
mainfrom
stuartwells/ensurestatepropagation

Conversation

@stuart-wells
Copy link
Copy Markdown
Contributor

What changed?

Two ways to approach the same goal:

  • Moves up the defer in the handover workflow that sets state to Normal, so it is registered before state is set to handover
  • Propagate Normal state from a failover back to the standbys, to ensure they aren't stuck in handover or unspecified

Why?

During force-failover, it is possible for a standby to be stuck in handover/unspecified state

How did you test it?

  • built
  • run locally and tested manually
  • covered by existing tests
  • added new unit test(s)
  • added new functional test(s)

@stuart-wells stuart-wells requested review from a team as code owners May 8, 2026 22:55
@stuart-wells stuart-wells self-assigned this May 11, 2026
@stuart-wells stuart-wells requested a review from hehaifengcn May 11, 2026 18:05
}
}()

// ** Step 4: RecoverOrInitialize Handover (WARNING: Namespace cannot serve traffic while in this state)
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I think we need a workflow versioning change here. Try to use workflow.GetVersion

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Claude thinks that since it was just a defer registration it was probably fine, but I've added one just to make sure

@stuart-wells stuart-wells merged commit 0386366 into main May 21, 2026
48 checks passed
@stuart-wells stuart-wells deleted the stuartwells/ensurestatepropagation branch May 21, 2026 23:27
stuart-wells added a commit that referenced this pull request May 22, 2026
…#10363)

This reverts commit 0386366.

## What changed?
Reverting Handover changes

## Why?
Commit was currently breaking other builds

## How did you test it?
- [ ] built
- [ ] run locally and tested manually
- [ ] covered by existing tests
- [ ] added new unit test(s)
- [ ] added new functional test(s)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants