[SERVER-35308] Track total active time of transaction in SingleTransactionStats Created: 31/May/18 Updated: 29/Oct/23 Resolved: 22/Jun/18 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Diagnostics, Replication |
| Affects Version/s: | None |
| Fix Version/s: | 4.0.2, 4.1.1 |
| Type: | Task | Priority: | Major - P3 |
| Reporter: | William Schultz (Inactive) | Assignee: | Jinny Byun |
| 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-06-18, Repl 2018-07-02 | ||||||||||||||||
| Participants: | |||||||||||||||||
| Description |
|
We want to track the total amount of "active" and "inactive" time spent by a transaction in SingleTransactionStats. A transaction is considered "active" if it is currently executing an operation, and considered "inactive" if it is idly waiting for a new operation to occur. To measure "active" time, we can use the "unstash" and "stash" transaction events to mark the beginning and end of an "active" period. When an operation stashes its transaction resources, we should add that operation's total running time to a cumulative SingleTransactionStats::timeActive field on the session. Similarly, when the first operation on a transaction completes, we should add its running time to SingleTransactionStats::timeActive. |
| Comments |
| Comment by Githook User [ 15/Aug/18 ] |
|
Author: {'username': 'jinichu', 'email': 'jinnybyun@gmail.com', 'name': 'jinichu'}Message: (cherry picked from commit cfb0b9ff7ca1a20c3c37edd2baf6e5c509c65aca) |
| Comment by Githook User [ 28/Jun/18 ] |
|
Author: {'username': 'jinichu', 'name': 'jinichu', 'email': 'jinnybyun@gmail.com'}Message: |
| Comment by Githook User [ 22/Jun/18 ] |
|
Author: {'username': 'jinichu', 'name': 'jinichu', 'email': 'jinnybyun@gmail.com'}Message: |
| Comment by Githook User [ 22/Jun/18 ] |
|
Author: {'username': 'jinichu', 'name': 'jinichu', 'email': 'jinnybyun@gmail.com'}Message: |