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

Allow retrying killing a process when it get stucks in stopping state #451

Merged
merged 3 commits into from
Mar 27, 2024

Conversation

shuo-wu
Copy link
Contributor

@shuo-wu shuo-wu commented Mar 22, 2024

Which issue(s) this PR fixes:

longhorn/longhorn#8091

What this PR does / why we need it:

We don't know how to reproduce this issue. But this PR allows retrying the process kill after a timeout anyway

Special notes for your reviewer:

Additional documentation or context

Longhorn 8091

Signed-off-by: Shuo Wu <shuo.wu@suse.com>
Copy link
Collaborator

@ejweber ejweber left a comment

Choose a reason for hiding this comment

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

LGTM in general if my understanding is correct. One suggestion.

pkg/process/process.go Show resolved Hide resolved
Longhorn 8091

Signed-off-by: Shuo Wu <shuo.wu@suse.com>
needStop = true
}
// Retry the deletion if the process is not stopped in 30 seconds
Copy link
Member

Choose a reason for hiding this comment

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

60 seconds?

WaitInterval is 100ms and WaitCount is 600.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yeah. I forgot to update this comment. Will do it with a new PR

@innobead innobead self-requested a review March 27, 2024 09:18
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

@innobead innobead merged commit c4416e8 into longhorn:master Mar 27, 2024
3 of 5 checks passed
@innobead
Copy link
Member

@mergify backport v1.6.x 1.5.x

Copy link

mergify bot commented Mar 27, 2024

backport v1.6.x 1.5.x

❌ No backport have been created

GitHub error: Branch not found

@innobead
Copy link
Member

cc @longhorn/qa need to ensure replica related e2e test cases succeed as usual.

@innobead
Copy link
Member

@mergify backport v1.5.x

Copy link

mergify bot commented Mar 27, 2024

backport v1.5.x

✅ Backports have been created

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.

4 participants