-
Notifications
You must be signed in to change notification settings - Fork 133
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
Avoid a potential race condition #1156
Avoid a potential race condition #1156
Conversation
36c0121
to
d24779a
Compare
b1f905f
to
e526b95
Compare
- Add extra_linting.sh to check for orphan_protection_time=0 in extra_linting Issue: AAH-1384
e526b95
to
df2b8de
Compare
|
Issue: AAH-1384
@@ -91,7 +91,7 @@ def delete_container_distribution(instance_ids): | |||
general_multi_delete(instance_ids=instance_ids) | |||
|
|||
log.info("Running orphan_cleanup to delete Container objects and artifacts") | |||
orphan_cleanup(content_pks=None, orphan_protection_time=0) | |||
orphan_cleanup(content_pks=None, orphan_protection_time=10) |
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.
is 10
a reasonable number to protect? is this number in 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.
The value is in minutes. The default setting in pulpcore is here.
Backport to stable-4.4: 💔 cherry-picking failed — conflicts found❌ Failed to cleanly apply 5770462 on top of patchback/backports/stable-4.4/57704621a25b8d384e7f120605c77132b4a8d2d1/pr-1156 Backporting merged PR #1156 into master
🤖 @patchback |
Issue: AAH-1384 (cherry picked from commit 5770462)
Description 🛠
When calling
orphan_cleanup
setting the parameterorphan_protection_time
to zero has the potential to create race conditions.This PR adds a check in CI to ensure we don't forget and sets
orphan_protection_time
to 10 per a discussion in slack.Issue: AAH-1384
Reviewer Checklists 👀
Developer reviewer:
galaxy_ng/tests/integration
orgalaxy_ng/tests/functional
, and they fully cover necessary test scenarios… or tests not neededQE reviewer (exceptions):
galaxy_ng/tests/integration
orgalaxy_ng/tests/functional
, and they fully cover necessary test scenarios… or tests not neededNote: when merging, include the Jira issue link in the squashed commit