[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: |
|
||||||||
| 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: (cherry picked from commit a4cd7b6dc25c6dcae4c824b637679ba588fe3cc6) |
| Comment by Githook User [ 31/May/23 ] |
|
Author: {'name': 'Gregory Wlodarek', 'email': 'gregory.wlodarek@mongodb.com', 'username': 'GWlodarek'}Message: |