[SERVER-49963] Store API parameters for serverStatus metrics Created: 28/Jul/20 Updated: 29/Oct/23 Resolved: 13/Aug/20 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Replication |
| Affects Version/s: | None |
| Fix Version/s: | 4.7.0 |
| Type: | Task | Priority: | Major - P3 |
| Reporter: | Pridhvi Vegesna (Inactive) | Assignee: | Xuerui Fa |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||||||||||
| Backwards Compatibility: | Fully Compatible | ||||||||||||||||
| Sprint: | Repl 2020-08-10, Repl 2020-08-24 | ||||||||||||||||
| Participants: | |||||||||||||||||
| Description |
|
Breaking up Like serverStatus metrics for elections, create a class ApplicationApiVersionMetrics. An instance of this class will be stored as a decoration on service context. Use ReplicationMetrics as reference. The class should be populated with the field “appNameVersionTimestamps” of type: map<applicationName, <apiVersion, latest-timestamp>>. Define a mutex as a private field in the class. Lastly, add a member function addVersionTimestamp(applicationName, apiVersion) which acquires the mutex and writes a timestamp to an (applicationName, apiVersion) pair in "appNameVersionTimestamps". In execCommandDatabase of service_entry_point_common.cpp and in runCommand of strategy.cpp, invoke “addVersionTimestamp”.
|
| Comments |
| Comment by Githook User [ 13/Aug/20 ] |
|
Author: {'name': 'XueruiFa', 'email': 'xuerui.fa@mongodb.com', 'username': 'XueruiFa'}Message: |
| Comment by Githook User [ 13/Aug/20 ] |
|
Author: {'name': 'XueruiFa', 'email': 'xuerui.fa@mongodb.com', 'username': 'XueruiFa'}Message: |