Skip to content

Add ra:transfer_leadership/3#583

Merged
kjnilsson merged 1 commit intomainfrom
md/transfer-leadership-3
Feb 26, 2026
Merged

Add ra:transfer_leadership/3#583
kjnilsson merged 1 commit intomainfrom
md/transfer-leadership-3

Conversation

@the-mikedavis
Copy link
Copy Markdown
Collaborator

ra:transfer_leadership/2 hardcodes the default timeout. This commit introduces an arity-3 version accepting an arbitrary timeout.

Like #580 this just seemed like an oversight to not expose to me. I don't think I've seen a situation where this naturally timed out, but hypothetically 5s could be too short in some edge cases.

`ra:transfer_leadership/2` hardcodes the default timeout. This commit
introduces an arity-3 version accepting an arbitrary timeout.
@the-mikedavis the-mikedavis self-assigned this Feb 25, 2026
@kjnilsson
Copy link
Copy Markdown
Contributor

Like #580 this just seemed like an oversight to not expose to me. I don't think I've seen a situation where this naturally timed out, but hypothetically 5s could be too short in some edge cases.

the call returns immedately after initating the leadership trasnfer, it does not wait for it to complete so that is probably why you've never seen a timeout but sure one more function in the API, why not.

@kjnilsson kjnilsson merged commit 757a9f8 into main Feb 26, 2026
7 checks passed
@the-mikedavis the-mikedavis deleted the md/transfer-leadership-3 branch February 26, 2026 17:06
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