Bug 1290952 - mongod throws "too much data for sort()"
mongod throws "too much data for sort()"
Product: Red Hat Satellite 6
Classification: Red Hat
Component: Inter Satellite Sync (Show other bugs)
x86_64 Linux
unspecified Severity medium (vote)
: Unspecified
: --
Assigned To: satellite6-bugs
Katello QA List
Depends On:
  Show dependency treegraph
Reported: 2015-12-11 20:40 EST by Taylor Biggs
Modified: 2016-02-08 13:23 EST (History)
1 user (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2016-02-08 13:23:58 EST
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Taylor Biggs 2015-12-11 20:40:21 EST
Description of problem:  When running larger katello-disconnected commands (such as sort or publish with 100s of RPM repos), mongod throws this error:

"database error: too much data for sort() with no index.  add an index or specify a smaller limit"

Version-Release number of selected component (if applicable):


How reproducible: Usually

Steps to Reproduce:
1.  Import a few hundred large RPM repositories with katello-disconnected.
2.  Run a katello-disconnected publish.
3.  Watch journalctl throw mongod and katello errors similar to above.

Actual results:

"database error: too much data for sort() with no index.  add an index or specify a smaller limit"

Expected results:

No error, complete publishing of all RPMS.

Additional info:

This fixes the issue.  Perhaps it should be added to setup phases of katello (migrate DB)?

[root@host ~]# mongo
MongoDB shell version: 2.4.9
connecting to: test
> use pulp_database
switched to db pulp_database
> db.units_rpm.ensureIndex( { name: 1, epoch: 1, version: 1, release: 1, arch: 1, checksumtype: 1, checksum: 1 } )
Comment 1 Bryan Kearney 2016-02-08 13:23:58 EST
The katello-disconnected server synchronization and export functions are being moved into the Satellite server itself. With 6.2, the katello-disconnected command will no longer be delivered and instead will be replaced with a new export and import functions delivered via the UI and hammer CLI. This bug is being closed as "WONTFIX" since it relates only to the existing katello-disconnected tooling. Please check the Satellite docs with the release of Satellite 6.2 on how to use the new content export and import features.

Note You need to log in before you can comment on or make changes to this bug.