Issue #970
closed
Pulp freezes during association processing
Status:
CLOSED - CURRENTRELEASE
Description
During tests of pulp-2.5 we often met situation when pulp froze in association process for even few minutes on one package. Solution was add sort index "_id" to _associated_units_by_type_cursor method, so pulp return always sorted data by one index. Patch applicable on master branch is included in files.
Files
- Subject changed from [RFE] fixed sort index in _associated_units_by_type_cursor to Pulp freezes during association processing
This looks like a bug report so I'm removing the [RFE] from the front. We don't use that syntax anymore. I also rewrote it some to match my understanding of the issue.
- Priority changed from Normal to High
- Triaged changed from No to Yes
jluza, can you provide samples of the command line or rest API calls that you are making when you hit this issue? There are a lot of code paths that can hit this particular code. Thanks!
- Status changed from NEW to POST
- Assignee set to jluza
- Platform Release set to 2.7.1
- OS deleted (
RHEL 6)
- Tags Easy Fix added
- Status changed from POST to MODIFIED
- % Done changed from 0 to 100
- Platform Release changed from 2.7.1 to 2.7.2
- Status changed from MODIFIED to 5
- Status changed from 5 to CLOSED - CURRENTRELEASE
- Platform Release changed from 2.7.2 to 2.7.0
Also available in: Atom
PDF
sort with _id in every unit association query (prevents mongo from freeze)
This commit changes the unit association query's default sort to use the _id field instead of the unit key as it did before. Since the default sort is arbitrary, this improves performance while maintaining API compatibility.
https://pulp.plan.io/issues/970
fixes #970