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

pkg/system: reduce retry timeout for EnsureRemoveAll #1723

Merged
merged 2 commits into from
Sep 29, 2023

Conversation

giuseppe
Copy link
Member

reduce the waiting time for attempting again the removal to 10ms instead of the current 100ms.

Currently, if we hit the timeout, we add an artificial 100ms delay to the container cleanup, while with this we will react faster when the removal is possible.

Signed-off-by: Giuseppe Scrivano [email protected]

Signed-off-by: Giuseppe Scrivano <[email protected]>
reduce the waiting time for attempting again the removal to 10ms
instead of the current 100ms.

Currently, if we hit the timeout, we add an artificial 100ms delay to
the container cleanup, while with this we will react faster when the
removal is possible.

Signed-off-by: Giuseppe Scrivano <[email protected]>
@openshift-ci
Copy link
Contributor

openshift-ci bot commented Sep 29, 2023

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: giuseppe

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@rhatdan
Copy link
Member

rhatdan commented Sep 29, 2023

LGTM

@TomSweeneyRedHat
Copy link
Member

The change looks OK to me. I'm just wondering if, given we're checking more quickly now, should we reduce the retry count to keep from hammering the system. I was thinking 500 instead of 1000. IDK, I'm fence-sitting and looking for other opinions.

@giuseppe
Copy link
Member Author

I think it is fine as it is so we have more time to recover from temporary failures. The operations involved are not too expensive so even every 10ms is still a relatively long time

@rhatdan rhatdan merged commit 7b01ce7 into containers:main Sep 29, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants