-
Notifications
You must be signed in to change notification settings - Fork 57
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
Conversation
Longhorn 8091 Signed-off-by: Shuo Wu <shuo.wu@suse.com>
There was a problem hiding this 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.
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 |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
@mergify backport v1.6.x 1.5.x |
❌ No backport have been created
GitHub error: |
cc @longhorn/qa need to ensure replica related e2e test cases succeed as usual. |
@mergify backport v1.5.x |
✅ Backports have been created
|
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