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
Fixed rare bulk_update() deadlock in ContentSaver. #2478
Conversation
|
Does this need a 3.14 backport? (Presumably a manual one) |
Target is set to 6.11 (which is 3.16) - but 6.10.z flag is also set, so we prob should bring it back to 3.14 as well. |
| ContentArtifact.objects.bulk_update(to_update_ca_bulk, ["artifact"]) | ||
| # To avoid a similar deadlock issue when calling get_or_create, we sort the | ||
| # "new" CAs to make sure inserts happen in a defined order. Since we can't | ||
| # trust the pulp_id (by the time we go to create a CA< it may already exist, |
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.
typo: s/</,
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.
typo: s/</,
Ugh, prob my most-common typo :(
See https://bugzilla.redhat.com/show_bug.cgi?id=2062526 for details on forcing the deadlock and discussion of the fix. fixes pulp#2430. [nocoverage]
e593d74
to
4f866e0
Compare
Backport to 3.14: 💔 cherry-picking failed — conflicts found❌ Failed to cleanly apply 0238741 on top of patchback/backports/3.14/0238741f707c4f2c7d702e2ac221c1f73df6cd60/pr-2478 Backporting merged PR #2478 into main
🤖 @patchback |
Backport to 3.17: 💚 backport PR created✅ Backport PR branch: Backported as #2489 🤖 @patchback |
Backport to 3.15: 💔 cherry-picking failed — conflicts found❌ Failed to cleanly apply 0238741 on top of patchback/backports/3.15/0238741f707c4f2c7d702e2ac221c1f73df6cd60/pr-2478 Backporting merged PR #2478 into main
🤖 @patchback |
Backport to 3.16: 💚 backport PR created✅ Backport PR branch: Backported as #2490 🤖 @patchback |
Backport to 3.18: 💚 backport PR created✅ Backport PR branch: Backported as #2491 🤖 @patchback |
See https://bugzilla.redhat.com/show_bug.cgi?id=2062526 for details on
forcing the deadlock and discussion of the fix.
fixes #2430.
[nocoverage]