[SERVER-6577] capped collection _id index creation on secondaries not triggered by updates Created: 24/Jul/12  Updated: 11/Jul/16  Resolved: 02/Aug/12

Status: Closed
Project: Core Server
Component/s: Replication
Affects Version/s: 2.2.0-rc0
Fix Version/s: 2.2.0-rc1

Type: Bug Priority: Major - P3
Reporter: Kevin Matulef Assignee: Kevin Matulef
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: File capped_id_add.js    
Issue Links:
Related
related to SERVER-5304 initial sync fails to create index on... Closed
is related to SERVER-5516 Capped collections (tracking ticket) Closed
Operating System: ALL
Participants:

 Description   

Capped collections are supposed to automatically get an _id index on secondaries. However, the creation of this _id index is triggered RARELY by some number of inserts. Doing a bunch of updates without inserts won't trigger the index creation. I'm uploading a js test which illustrates this.



 Comments   
Comment by Kristina Chodorow (Inactive) [ 02/Aug/12 ]

Related commit: https://github.com/mongodb/mongo/commit/45667b3132dcc43204c7058d6db0ef997a053d52

Comment by auto [ 02/Aug/12 ]

Author:

{u'date': u'2012-08-02T05:14:22-07:00', u'email': u'matulef@gmail.com', u'name': u'Kevin Matulef'}

Message: SERVER-5516 SERVER-5304 SERVER-6577 new capped collections now get _id index by default (except in local db)
Branch: master
https://github.com/mongodb/mongo/commit/b202965c2aa985232699b059c7135dd64f09700e

Comment by auto [ 26/Jul/12 ]

Author:

{u'date': u'2012-07-26T13:48:49-07:00', u'email': u'matulef@10gen.com', u'name': u'Kevin Matulef'}

Message: SERVER-6577 temp fix for buildbot
Branch: master
https://github.com/mongodb/mongo/commit/8e6189095eaa2fd517481f3b1c7b757b8dcbe0ad

Comment by auto [ 26/Jul/12 ]

Author:

{u'date': u'2012-07-26T12:55:26-07:00', u'email': u'matulef@10gen.com', u'name': u'Kevin Matulef'}

Message: SERVER-6577 capped coll updates trigger _id index creation on secondaries
Branch: master
https://github.com/mongodb/mongo/commit/1a17d25673cff95dffbe692ff54e799d69fda25d

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