[SERVER-11628] Documents deleted before TTL index background build completes Created: 07/Nov/13  Updated: 11/Jul/16  Resolved: 13/Jan/14

Status: Closed
Project: Core Server
Component/s: Index Maintenance
Affects Version/s: None
Fix Version/s: 2.5.5

Type: Bug Priority: Major - P3
Reporter: Norman Graham Assignee: Eliot Horowitz (Inactive)
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: File ttl_delete_during_build.js    
Issue Links:
Related
is related to DOCS-2194 TTL indexes can delete documents befo... Closed
Operating System: ALL
Steps To Reproduce:
  1. add a TTL index built in the background on a collection with existing data
  2. wait for the index build to begin
  3. wait for documents to begin being deleted
  4. check that the index is still being built

The attached script reproduces the issue

Participants:

 Description   

When building a TTL index in the background on an existing collection, documents are deleted before the index build finishes, increasing the load on the host server.



 Comments   
Comment by Githook User [ 13/Jan/14 ]

Author:

{u'username': u'erh', u'name': u'Eliot Horowitz', u'email': u'eliot@10gen.com'}

Message: SERVER-11628: make sure ttl index is complete before deleting documents
Branch: master
https://github.com/mongodb/mongo/commit/ee5bf211dd5db16a8fd8e40d0fadae4114014b4b

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

I'll take care of this unless you (Eric) already have something in progress.

Comment by Daniel Pasette (Inactive) [ 08/Nov/13 ]

I don't see a super-clean way to indicate whether an index build is in progress or not.

Generated at Thu Feb 08 03:26:20 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.