[SERVER-77550] Remove commit handler write to index catalog entry in IndexCatalogImpl::indexBuildSuccess() Created: 30/May/23  Updated: 29/Oct/23  Resolved: 31/May/23

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 7.1.0-rc0, 7.0.0-rc3

Type: Bug Priority: Major - P3
Reporter: Gregory Wlodarek Assignee: Gregory Wlodarek
Resolution: Fixed Votes: 0
Labels: techdebt
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:
v7.0
Sprint: Execution Team 2023-06-12
Participants:
Linked BF Score: 130

 Description   

This is unsafe to do in an onCommit handler as commit handlers run after the storage transaction committed and the writable collection was published in the CollectionCatalog. This can result in read operations unexpectedly seeing changes to this index entry.



 Comments   
Comment by Githook User [ 31/May/23 ]

Author:

{'name': 'Gregory Wlodarek', 'email': 'gregory.wlodarek@mongodb.com', 'username': 'GWlodarek'}

Message: SERVER-77550 Remove commit handler write to index catalog entry in IndexCatalogImpl::indexBuildSuccess()

(cherry picked from commit a4cd7b6dc25c6dcae4c824b637679ba588fe3cc6)
Branch: v7.0
https://github.com/mongodb/mongo/commit/46a4aa82b7a57a54be3de28dd762265a6792f750

Comment by Githook User [ 31/May/23 ]

Author:

{'name': 'Gregory Wlodarek', 'email': 'gregory.wlodarek@mongodb.com', 'username': 'GWlodarek'}

Message: SERVER-77550 Remove commit handler write to index catalog entry in IndexCatalogImpl::indexBuildSuccess()
Branch: master
https://github.com/mongodb/mongo/commit/a4cd7b6dc25c6dcae4c824b637679ba588fe3cc6

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