[SERVER-35433] Log slow transactions when they finish Created: 05/Jun/18  Updated: 29/Oct/23  Resolved: 11/Aug/18

Status: Closed
Project: Core Server
Component/s: Replication
Affects Version/s: None
Fix Version/s: 4.0.2, 4.1.2

Type: Task Priority: Major - P3
Reporter: William Schultz (Inactive) Assignee: Nathan Louie
Resolution: Fixed Votes: 0
Labels: per-txn-metrics
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Backports
Depends
depends on SERVER-35432 Add a method for printing out informa... Closed
Documented
is documented by DOCS-11963 Docs for SERVER-35433: Log slow trans... Closed
Related
related to SERVER-36461 Add 'transaction' identifier to slow ... Closed
is related to SERVER-36414 Add readConcern to slow transaction l... Closed
Backwards Compatibility: Fully Compatible
Backport Requested:
v4.0
Sprint: Repl 2018-07-30, Repl 2018-08-13
Participants:

 Description   

When a transaction finishes (commits or abort), we want to log information about it if its total duration was longer than the slowMs command threshold.



 Comments   
Comment by Githook User [ 16/Aug/18 ]

Author:

{'username': 'jinichu', 'email': 'jinnybyun@gmail.com', 'name': 'jinichu'}

Message: SERVER-35433 Log slow transactions when aborting under commits
Branch: v4.0
https://github.com/mongodb/mongo/commit/36c1546add7887aeacb8228d289feac1b2d74c08

Comment by Githook User [ 16/Aug/18 ]

Author:

{'username': 'nxlouie', 'email': 'nathan.louie@10gen.com', 'name': 'Nathan Louie'}

Message: SERVER-35433 Log slow transactions when they finish

(cherry picked from commit 70550cf9e211611c396020f0027bd64a6e5b99c0)
Branch: v4.0
https://github.com/mongodb/mongo/commit/d9e51a438f917383f91dcefad6fa23725c055ef6

Comment by William Schultz (Inactive) [ 11/Aug/18 ]

Closing this ticket since we already have unit test coverage for the slow transaction log line messages.

Comment by William Schultz (Inactive) [ 08/Aug/18 ]

nathan.louie To work around the line truncation issue, we should be able to utilize the rawMongoProgramOutput() function that is built into the shell. It allows access to printed log lines without a truncation limit.

Comment by Nathan Louie [ 07/Aug/18 ]

The functional changes have been committed. This ticket is still in progress because we need to come up with an integration test strategy - since the log line is truncated at 512 characters.

Comment by Githook User [ 02/Aug/18 ]

Author:

{'username': 'nxlouie', 'name': 'Nathan Louie', 'email': 'nathan.louie@10gen.com'}

Message: SERVER-35433 Remove extra lock
Branch: master
https://github.com/mongodb/mongo/commit/84cb23553ecca69fb2ec84dbd4aa13bb18f26b47

Comment by Githook User [ 02/Aug/18 ]

Author:

{'name': 'William Schultz', 'email': 'william.schultz@mongodb.com', 'username': 'will62794'}

Message: SERVER-35433 Fix lint
Branch: master
https://github.com/mongodb/mongo/commit/e35ae49c20ab7951b57a586caa9d331be58de0f4

Comment by Githook User [ 01/Aug/18 ]

Author:

{'name': 'Nathan Louie', 'email': 'nathan.louie@10gen.com', 'username': 'nxlouie'}

Message: SERVER-35433 Log slow transactions when they finish
Branch: master
https://github.com/mongodb/mongo/commit/70550cf9e211611c396020f0027bd64a6e5b99c0

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