[SERVER-40501] Better log messages when asserting on "can't send commit" error Created: 05/Apr/19  Updated: 29/Oct/23  Resolved: 22/May/19

Status: Closed
Project: Core Server
Component/s: Sharding
Affects Version/s: 4.1.9
Fix Version/s: 4.1.12

Type: Improvement Priority: Major - P3
Reporter: Randolph Tan Assignee: Alexander Taskov (Inactive)
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Backwards Compatibility: Fully Compatible
Sprint: Sharding 2019-06-03
Participants:

 Description   

https://github.com/mongodb/mongo/blob/55741c6d7ea210cd687cba3891577b830ced48c2/src/mongo/s/transaction_router.cpp#L799

It would be helpful to include the shardId and the current state it was for debugging.



 Comments   
Comment by Kaloian Manassiev [ 22/May/19 ]

Commit: https://github.com/mongodb/mongo/commit/5568fc166a6596de38ded3a3aa81622bf951c18d

Comment by Githook User [ 22/May/19 ]

Author:

{'name': 'Alex Taskov', 'email': 'alex.taskov@mongodb.com', 'username': 'alextaskov'}

Message: SERVER-40501 Added shard id and state to log message for failed commit error
Branch: master
https://github.com/mongodb/mongo/commit/5568fc166a6596de38ded3a3aa81622bf951c18d

Comment by Alexander Taskov (Inactive) [ 22/May/19 ]

Revised log message to provide more context for debugging. Included shard id and transaction id.

Comment by Alexander Taskov (Inactive) [ 22/May/19 ]

CR: https://mongodbcr.appspot.com/471280009

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