Bug 795435

Summary: mongo error in log "key too large to index"
Product: [Retired] Pulp Reporter: James Slagle <jslagle>
Component: z_otherAssignee: James Slagle <jslagle>
Status: CLOSED CURRENTRELEASE QA Contact: Preethi Thomas <pthomas>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 1.1.0Keywords: Triaged
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
: 805196 805616 (view as bug list) Environment:
Last Closed: 2012-05-25 14:14:02 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 805196, 805616    

Description James Slagle 2012-02-20 14:27:42 UTC
I see several occurrences of this error in /var/log/mongodb/mongodb.log.

Thu Jun 30 16:32:19 [conn17]  pulp_unittest.packages Btree::insert: key too large to index, skipping pulp_unittest.packages.$description_-1 861 { : "Oauth2 was originally forked from Leah Culver and Andy Smith's oauth.p..." }

It's not specific to this one package, there are lots of references to packages.$description as being too large to index.  I also see occurrences of repos.$packagegroups, probably because that also has a lengthy description.

This has the potential to fill up the mongo log, making it very hard to see errors you might care about, as well as fill up disk space.

We should look at excluding these keys from indexing.

Comment 1 James Slagle 2012-03-19 20:58:11 UTC
errata.description as well needs to be removed

Comment 2 James Slagle 2012-03-20 16:55:53 UTC
cherry picked to pulp_v1 1129a660f14a2df404d01bdfb60eb1b779c7959e

Comment 3 Jeff Ortel 2012-04-12 22:59:06 UTC
build: 0.282

Comment 4 Preethi Thomas 2012-04-18 15:12:54 UTC
verified
[root@pulp-v1-1-server ~]# rpm -q pulp
pulp-1.1.2-1.fc16.noarch

checked /var/log/mongodb/mongodb.log

Comment 5 Preethi Thomas 2012-05-25 14:14:02 UTC
Pulp v1.1 Release