[SERVER-56943] add cmdObj to runClientFunctionWithRetries() log message for tests Created: 14/May/21  Updated: 29/Oct/23  Resolved: 12/Aug/21

Status: Closed
Project: Core Server
Component/s: Testing Infrastructure
Affects Version/s: None
Fix Version/s: 5.1.0-rc0

Type: Improvement Priority: Major - P3
Reporter: Benety Goh Assignee: Siran Wang (Inactive)
Resolution: Fixed Votes: 0
Labels: tig-resmoke
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
Backwards Compatibility: Fully Compatible
Sprint: STM 2021-08-23
Participants:
Linked BF Score: 19
Story Points: 1

 Description   

In the logs for retryable writes passthrough tests, the following is a sample log message for an insert command that is being run again by the runClientFunctionWithRetries() function in session.js:

[js_test:coveredIndex2] [jsTest] Retrying insert due to retryable error (code=11602), subsequent retries remaining: 2

For base tests that may have multiple instances of the same command that may be retried and in the absence of additional context in the logs, this can take some guesswork to figure out which command is being retried.

It would be useful for test failure analysis to be able to include more of the command object (taking into redaction) in the retry log message.



 Comments   
Comment by Vivian Ge (Inactive) [ 06/Oct/21 ]

Updating the fixversion since branching activities occurred yesterday. This ticket will be in rc0 when it’s been triggered. For more active release information, please keep an eye on #server-release. Thank you!

Comment by Githook User [ 12/Aug/21 ]

Author:

{'name': 'Siran Wang', 'email': 'siran.wang@mongodb.com', 'username': 'vincivans'}

Message: SERVER-56943 add cmdObj to runClientFunctionWithRetries() log message for tests
Branch: master
https://github.com/mongodb/mongo/commit/d4bc3b60e1b873e8cf1e09eab7a804b18e25d94d

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