Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: support a different timeout for the last replica (backport #1176) #1198

Merged
merged 3 commits into from
Aug 26, 2024

Conversation

mergify[bot]
Copy link

@mergify mergify bot commented Aug 23, 2024

Which issue(s) this PR fixes:

longhorn/longhorn#8711

What this PR does / why we need it:

The implementation in this PR makes it possible to configure the engine so that there are two engineReplicaTimeouts (short and long). The backends lightly coordinate via a new SharedTimeouts struct to ensure that most of them can time out in the normal way after engineReplicaTimeoutShort, but exactly one of them must wait engineReplicaTimeoutLong to do the same.

Note that this PR does NOT actually configure a different engineReplicaTimeoutLong. My plan is to do that in a followup after this one is approved and we decide exactly how we want to expose the new capability.

Special notes for your reviewer:

Additional documentation or context

Per #1176 (comment), I experimented with a different approach in https://github.com/ejweber/longhorn-engine/tree/8711-last-replica-timeout-previous-attempt. That one didn't work well due to lock contention between I/O operations, replica error handling, and the new logic.


This is an automatic backport of pull request #1176 done by Mergify.

Copy link
Member

@derekbit derekbit left a comment

Choose a reason for hiding this comment

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

LGTM

Longhorn 8711

Signed-off-by: Eric Weber <eric.weber@suse.com>
(cherry picked from commit acd296d)
Longhorn 8711

Signed-off-by: Eric Weber <eric.weber@suse.com>
(cherry picked from commit bbf32e0)
…outShort

Longhorn 8711

Signed-off-by: Eric Weber <eric.weber@suse.com>
(cherry picked from commit 405e96f)
@derekbit derekbit force-pushed the mergify/bp/v1.7.x/pr-1176 branch from bee6e77 to f783f88 Compare August 26, 2024 05:24
@derekbit derekbit merged commit d00ec45 into v1.7.x Aug 26, 2024
9 checks passed
@derekbit derekbit deleted the mergify/bp/v1.7.x/pr-1176 branch August 26, 2024 07:49
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.

2 participants