[SERVER-76715] Log origin of WriteConflictException in writeConflictRetry() Created: 01/May/23  Updated: 29/Oct/23  Resolved: 05/May/23

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

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

Issue Links:
Backports
Related
related to SERVER-79164 Investigate how to improve diagnosabi... Open
Backwards Compatibility: Fully Compatible
Backport Requested:
v7.0
Sprint: Execution Team 2023-05-15
Participants:
Linked BF Score: 135

 Description   

We catch the WriteConflictException but do not include the reason in the log message here.

This would make it easier to understand where the WriteConflictException came from.



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

Author:

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

Message: SERVER-76715 Log WriteConflictException reason in writeConflictRetry()
Branch: master
https://github.com/mongodb/mongo/commit/07c79a03fbe63f5c9734f68d44513cc15bb5ed2a

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