[DOCS-2194] TTL indexes can delete documents before they finish building Created: 06/Nov/13  Updated: 11/Jan/17  Resolved: 13/Jan/14

Status: Closed
Project: Documentation
Component/s: manual
Affects Version/s: None
Fix Version/s: 01112017-cleanup

Type: Improvement Priority: Major - P3
Reporter: Gregor Macadam Assignee: Sam Kleinman (Inactive)
Resolution: Done Votes: 0
Labels: newwriter
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
Related
related to SERVER-11628 Documents deleted before TTL index ba... Closed
related to DOCS-2437 TTL thread does actually run on all R... Closed
Participants:
Days since reply: 10 years, 5 weeks, 2 days ago

 Description   

I've tested and when TTL indexes are built in the background, the TTL thread runs and can delete documents before the index is finished building.

When they are built in the foreground, the documents aren't deleted until the index is finished building. (database global lock preventing deletes?)

This is not clear from

MongoDB begins removing expired documents as soon as the index finishes building.

http://docs.mongodb.org/manual/tutorial/expire-data/



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

Author:

{u'username': u'tychoish', u'name': u'Sam Kleinman', u'email': u'samk@10gen.com'}

Message: DOCS-2194: edits to clarify ttl thread behavior
Branch: master
https://github.com/mongodb/docs/commit/f5d8b15184f10594eff2132e1f04d8a73e0e9395

Comment by Githook User [ 13/Jan/14 ]

Author:

{u'username': u'tychoish', u'name': u'Sam Kleinman', u'email': u'samk@10gen.com'}

Message: DOCS-2194: edits to clarify ttl thread behavior
Branch: v2.4
https://github.com/mongodb/docs/commit/91214e04a5c3f6de3f30d5b0e6c3947a881bd389

Comment by Githook User [ 13/Jan/14 ]

Author:

{u'username': u'tychoish', u'name': u'Sam Kleinman', u'email': u'samk@10gen.com'}

Message: DOCS-2437 and DOCS-2194 edits
Branch: master
https://github.com/mongodb/docs/commit/9ba5a55dda436e89c58903e284b7b34cdc8af469

Comment by Githook User [ 13/Jan/14 ]

Author:

{u'username': u'tychoish', u'name': u'Sam Kleinman', u'email': u'samk@10gen.com'}

Message: DOCS-2437 and DOCS-2194 edits
Branch: v2.4
https://github.com/mongodb/docs/commit/ec6bb4a417ed084641ef0f53860b50f26eec6b91

Generated at Thu Feb 08 07:42:52 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.