Actions
Issue #2568
closedDocumentTooLarge error during merge of errata pkglists
Start date:
Due date:
Estimated time:
Severity:
3. High
Version:
Platform Release:
2.12.1
OS:
Triaged:
Yes
Groomed:
No
Sprint Candidate:
No
Tags:
Pulp 2
Sprint:
Sprint 15
Quarter:
Description
In certain cases new collections are added to the erratum pkglist with every sync, so at some point pkglist becomes so long that the BSON document size limit is reached.
Conditions to end up in this situation:
- an erratum synced with Pulp < 2.8.5
- upgrade to Pulp >= 2.8.5 (errata merge implemented)
- pkglist for the same erratum changed upstream before the first operational sync (after Pulp upgrade) was performed
- any operational sync at this point will add one more collection to erratum
It may sound like a rare case but according to BZ it is not, probably because pkglists were changed for errata in EPEL7 repo which a lot of users have in their Pulp.
For example, pkglist for erratum FEDORA-EPEL-2016-f057025262 was changed.
Related issues
Actions
Fix the errata merge logic
Pkglists should no longer be extended with the collections for the same repository. Migration is introduced to clean up duplicates in the affected pkglists.
closes #2568 https://pulp.plan.io/issues/2568