Skip to content

Ensure leader resignation on shutdown#3790

Merged
mhutchinson merged 1 commit intogoogle:masterfrom
osmman:election-close
Jun 11, 2025
Merged

Ensure leader resignation on shutdown#3790
mhutchinson merged 1 commit intogoogle:masterfrom
osmman:election-close

Conversation

@osmman
Copy link
Copy Markdown
Contributor

@osmman osmman commented Jun 11, 2025

To ensure proper leadership resignation during shutdown, an independent context is created for election.Close, preventing failure due to the canceled parent context.

Fixes #3789

Checklist

To ensure proper leadership resignation during shutdown, an independent
context is created for election.Close, preventing failure due to the
canceled parent context.

Signed-off-by: Tomas Turek <tturek@redhat.com>
@osmman osmman marked this pull request as ready for review June 11, 2025 13:33
@osmman osmman requested a review from a team as a code owner June 11, 2025 13:33
@osmman osmman requested a review from mhutchinson June 11, 2025 13:33
@mhutchinson
Copy link
Copy Markdown
Contributor

/gcbrun

@mhutchinson mhutchinson merged commit 26a2457 into google:master Jun 11, 2025
12 checks passed
@mhutchinson
Copy link
Copy Markdown
Contributor

Thanks!

osmman added a commit to securesign/trillian that referenced this pull request Jun 11, 2025
To ensure proper leadership resignation during shutdown, an independent
context is created for election.Close, preventing failure due to the
canceled parent context.

Signed-off-by: Tomas Turek <tturek@redhat.com>
osmman added a commit to securesign/trillian that referenced this pull request Jun 11, 2025
To ensure proper leadership resignation during shutdown, an independent
context is created for election.Close, preventing failure due to the
canceled parent context.

Signed-off-by: Tomas Turek <tturek@redhat.com>
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.

Leader election does not resign mastership on shutdown

2 participants