[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: |
|
||||||||||||||||||||||||||||||||
| 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: |
| Comment by Githook User [ 16/Aug/18 ] |
|
Author: {'username': 'nxlouie', 'email': 'nathan.louie@10gen.com', 'name': 'Nathan Louie'}Message: (cherry picked from commit 70550cf9e211611c396020f0027bd64a6e5b99c0) |
| 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: |
| Comment by Githook User [ 02/Aug/18 ] |
|
Author: {'name': 'William Schultz', 'email': 'william.schultz@mongodb.com', 'username': 'will62794'}Message: |
| Comment by Githook User [ 01/Aug/18 ] |
|
Author: {'name': 'Nathan Louie', 'email': 'nathan.louie@10gen.com', 'username': 'nxlouie'}Message: |