[SERVER-48334] Index builds can fail in debug builds with unhandled WriteConflictException Created: 20/May/20  Updated: 29/Oct/23  Resolved: 25/Jun/20

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 4.7.0, 4.4.2

Type: Bug 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:
Backports
Depends
Backwards Compatibility: Fully Compatible
Operating System: ALL
Backport Requested:
v4.4
Sprint: Execution Team 2020-06-15, Execution Team 2020-06-29
Participants:
Linked BF Score: 25

 Description   

This check of getNumIndexexTotal can throw a WriteConflictException in debug builds. This is not expected at this point, so this invariant will throw

We should handle this exception or do it outside of a write lock.



 Comments   
Comment by Githook User [ 08/Sep/20 ]

Author:

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

Message: SERVER-48334 numIndexesTotal should only rethrow WriteConflictExceptions in a WriteUnitOfWork

(cherry picked from commit ba18ad9536295e1f8ff9a4e90701f271e38e6b19)
Branch: v4.4
https://github.com/mongodb/mongo/commit/262527a68f93acfc52c0339ebdab236a437e8b8b

Comment by Githook User [ 24/Jun/20 ]

Author:

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

Message: SERVER-48334 numIndexesTotal should only rethrow WriteConflictExceptions in a WriteUnitOfWork
Branch: master
https://github.com/mongodb/mongo/commit/ba18ad9536295e1f8ff9a4e90701f271e38e6b19

Generated at Thu Feb 08 05:16:50 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.