[SERVER-69677] Add warning to index build unexpected error code invariant and only enable in debug builds Created: 14/Sep/22  Updated: 29/Oct/23  Resolved: 19/Sep/22

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

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

Issue Links:
Depends
Related
is related to SERVER-46989 Index builds should hold RSTL to prev... Closed
is related to SERVER-47605 Single-phase index builds should only... Closed
Backwards Compatibility: Fully Compatible
Sprint: Execution Team 2022-09-19, Execution Team 2022-10-03
Participants:

 Description   

The Unexpected error code during index build shutdown invariant is the symptom of many server crashes and problems.

Its existence points to a design flaw of two-phase simultanous index builds. However, adding more exemptions to this invariant is also incorrect and should point to a bug.

Add a warning above this invariant explaining why it is a bad idea to add new exemptions and how to work around this invariant failing.



 Comments   
Comment by Githook User [ 16/Sep/22 ]

Author:

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

Message: SERVER-69677 Make "unexpected error code during index build cleanup" a test-only assertion

Outside of testing, we no longer fail with an invariant, but log a warning.
Branch: master
https://github.com/mongodb/mongo/commit/6680df6423c05f59d20f5eee3e0e8cfcecaaefeb

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