[SERVER-37911] CreateIndex via applyOps should notify opObserver in the WUOW of index commit Created: 02/Nov/18  Updated: 29/Oct/23  Resolved: 04/Dec/18

Status: Closed
Project: Core Server
Component/s: Storage
Affects Version/s: None
Fix Version/s: 4.0.6, 4.1.7

Type: Bug Priority: Major - P3
Reporter: Siyuan Zhou Assignee: Louis Williams
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Backports
Depends
Backwards Compatibility: Fully Compatible
Operating System: ALL
Backport Requested:
v4.0, v3.6
Sprint: Storage NYC 2018-12-03, Storage NYC 2018-12-17
Participants:
Linked BF Score: 68

 Description   

In createIndexForApplyOps, OpObserver::onCreateIndex() is called outside the WUOW of index commit, so it's possible that the build index via applyOps finishes without the corresponding oplog entry.



 Comments   
Comment by Githook User [ 11/Jan/19 ]

Author:

{'username': 'louiswilliams', 'email': 'louis.williams@mongodb.com', 'name': 'Louis Williams'}

Message: SERVER-37911 createIndex via applyOps should notify opObserver in the WUOW of index commit

(cherry picked from commit cf8fbf54354a805f0bdb5bc4282c8081f4802971)
Branch: v4.0
https://github.com/mongodb/mongo/commit/9222949aaa3701aaac040db015097b228978a56b

Comment by Githook User [ 04/Dec/18 ]

Author:

{'name': 'Louis Williams', 'email': 'louis.williams@mongodb.com', 'username': 'louiswilliams'}

Message: SERVER-37911 createIndex via applyOps should notify opObserver in the WUOW of index commit
Branch: master
https://github.com/mongodb/mongo/commit/cf8fbf54354a805f0bdb5bc4282c8081f4802971

Comment by Siyuan Zhou [ 02/Nov/18 ]

We need to backport the fix to previous version.

Generated at Thu Feb 08 04:47:23 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.