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

Additional potential race condition on os.Readdir #23587

Merged
merged 1 commit into from
Aug 13, 2024

Conversation

rhatdan
Copy link
Member

@rhatdan rhatdan commented Aug 12, 2024

Does this PR introduce a user-facing change?

None

Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
@rhatdan rhatdan added the No New Tests Allow PR to proceed without adding regression tests label Aug 12, 2024
@openshift-ci openshift-ci bot added release-note-none approved Indicates a PR has been approved by an approver from all required OWNERS files. labels Aug 12, 2024
Copy link

We were not able to find or create Copr project packit/containers-podman-23587 specified in the config with the following error:

Packit received HTTP 500 Internal Server Error from Copr Service. Check the Copr status page: https://copr.fedorainfracloud.org/status/stats/, or ask for help in Fedora Build System matrix channel https://matrix.to/#/#buildsys:fedoraproject.org.

Unless the HTTP status code above is >= 500, please check your configuration for:

  1. typos in owner and project name (groups need to be prefixed with @)
  2. whether the project name doesn't contain not allowed characters (only letters, digits, underscores, dashes and dots must be used)
  3. whether the project itself exists (Packit creates projects only in its own namespace)
  4. whether Packit is allowed to build in your Copr project
  5. whether your Copr project/group is not private

@rhatdan
Copy link
Member Author

rhatdan commented Aug 12, 2024

@Luap99 @edsantiago Searched for all os.Readdir in code base and only found this one other instance, where we have a potential race condition.

@edsantiago
Copy link
Member

Good proactive thinking, thanks. I can't comment on the safety of this patch, but FWIW the string "Deallocating lock" does not appear in my multi-year archive of flake logs.

Copy link
Member

@Luap99 Luap99 left a comment

Choose a reason for hiding this comment

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

LGTM

@Luap99
Copy link
Member

Luap99 commented Aug 12, 2024

Good proactive thinking, thanks. I can't comment on the safety of this patch, but FWIW the string "Deallocating lock" does not appear in my multi-year archive of flake logs.

This touches file locks abstraction that we are not using anywhere in our testing because we default to the shm based locks. So that code was never called.
Second this code is only used for podman system renumber which is not safe at all to use in parallel with other commands and calling to of them at the same to to trigger this would possibly break many other things first.

Copy link
Member

@Luap99 Luap99 left a comment

Choose a reason for hiding this comment

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

/lgtm

@openshift-ci openshift-ci bot added the lgtm Indicates that a PR is ready to be merged. label Aug 13, 2024
Copy link
Contributor

openshift-ci bot commented Aug 13, 2024

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: Luap99, rhatdan

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

@openshift-merge-bot openshift-merge-bot bot merged commit 936455d into containers:main Aug 13, 2024
72 of 82 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. lgtm Indicates that a PR is ready to be merged. No New Tests Allow PR to proceed without adding regression tests release-note-none
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants