Bug 805196

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: 2.0.6Keywords: Triaged
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: 795435 Environment:
Last Closed: 2012-05-25 14:15:46 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Bug Depends On: 795435, 805616    
Bug Blocks:    

Description James Slagle 2012-03-20 16:28:12 UTC
+++ This bug was initially created as a clone of Bug #795435 +++

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.

--- Additional comment from jslagle on 2012-03-19 16:58:11 EDT ---

errata.description as well needs to be removed

Comment 1 James Slagle 2012-03-20 16:50:13 UTC
committed to pulp master 39e4843eddb3e31d25e9f1f0c447ae13d1d0064f

Comment 2 James Slagle 2012-03-21 18:03:41 UTC
additional commit to pulp master 2ecd2b4519431ad9b5b9dec93d29369ecb8e9447

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

Comment 4 Preethi Thomas 2012-04-18 15:14:13 UTC
verified
[root@preethi-el6-pulp ~]# rpm -q pulp
pulp-0.0.283-1.el6.noarch


checked /var/log/mongodb/mongodb.log

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