[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:
Depends
depends on SERVER-49065 Mark API Version 1 commands Closed
is depended on by SERVER-49379 Metrics for Versioned API Closed
is depended on by SERVER-49965 Add apiVersion metrics to serverStatu... Closed
Backwards Compatibility: Fully Compatible
Sprint: Repl 2020-08-10, Repl 2020-08-24
Participants:

 Description   

Breaking up SERVER-49379 into smaller tickets. This is the first.

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: SERVER-49963: Store API parameters for serverStatus metrics
Branch: master
https://github.com/mongodb/mongo/commit/1fde9c98c245050117f9f4891c3b5ddc8f8cd271

Comment by Githook User [ 13/Aug/20 ]

Author:

{'name': 'XueruiFa', 'email': 'xuerui.fa@mongodb.com', 'username': 'XueruiFa'}

Message: SERVER-49963: Store API parameters for serverStatus metrics
Branch: master
https://github.com/mongodb/mongo/commit/e8b0acc393d181a50301a10ae436dc580b335858

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