[SERVER-2444] GridFS calls ensureIndex, which causes failure if the index is being built Created: 31/Jan/11  Updated: 31/Jan/11  Resolved: 31/Jan/11

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: 1.6.2
Fix Version/s: None

Type: Bug Priority: Minor - P4
Reporter: Alvin Richards (Inactive) Assignee: Unassigned
Resolution: Duplicate Votes: 1
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Duplicate
duplicates SERVER-1317 background index creation blocks "cre... Closed
Related
Operating System: ALL
Participants:

 Description   

Problem:

Customer saw this in their logs when using GridFS

Thu Jan 13 12:34:19 [conn14216] insert punchbowl-production.system.indexes exception 12588 cannot add index with a background operation in progress 0ms
Thu Jan 13 12:34:21 [conn14009] Caught Assertion in insert , continuing
Thu Jan 13 12:34:21 [conn14009] insert punchbowl-production.system.indexes exception 12588 cannot add index with a background operation in progress 0ms

Reproduce:
1. create a number of files in GridFS
2. drop the index FILES_ID
3. start a loop that inserts new files into GridFS
4. create the FILES_ID index with

{background: true}

5. error logged

Solution:
Make GridFS code periodically run ensureIndex, rather than on most calls.



 Comments   
Comment by Eliot Horowitz (Inactive) [ 31/Jan/11 ]

See SERVER-1317

Generated at Thu Feb 08 02:59:59 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.