[SERVER-77396] Refactor some of the concurrency exception util method Created: 23/May/23  Updated: 29/Oct/23  Resolved: 25/May/23

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

Type: Task Priority: Major - P3
Reporter: Mathis Bessa Assignee: Mathis Bessa
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
is depended on by SERVER-74490 Change NamespaceString::ns() to be pr... Closed
Backwards Compatibility: Fully Compatible
Sprint: Server Serverless 2023-05-29
Participants:

 Description   

We are currently dropping the `ns` parameter from handleTemporarilyUnavailableExceptionInTransaction . We should just remove that parameter altogether.

The handleTemporarilyUnavailableException passes a `StringData ns` (which is coming from a serialized NamespaceString) to then be deserialize for logging (here too). We should just pass the NamespaceString directly and only deserialize once for logging.

logWriteConflictAndBackoff should also pass a NamespaceString directly. We are currently serializing a NamespaceString as a parameter which is then used to deserialize the just serialized NamespaceString.



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

Author:

{'name': 'mathisbessamdb', 'email': 'mathis.bessa@mongodb.com', 'username': 'mathisbessamdb'}

Message: SERVER-77396 Refactor some of the concurrency exception util method
Branch: master
https://github.com/mongodb/mongo/commit/fc6b41d0087f6263c79d7014438ced31dc8d33fc

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