[SERVER-67107] Create Cumulative Metrics Field Name Provider Base Class Created: 08/Jun/22  Updated: 29/Oct/23  Resolved: 13/Jul/22

Status: Closed
Project: Core Server
Component/s: Sharding
Affects Version/s: None
Fix Version/s: 6.1.0-rc0

Type: New Feature Priority: Major - P3
Reporter: Brett Nawrocki Assignee: Brett Nawrocki
Resolution: Fixed Votes: 0
Labels: sharding-nyc-subteam1
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
is depended on by SERVER-67108 Create Resharding Cumulative Metrics ... Closed
is depended on by SERVER-67110 Create Global Index Cumulative Metric... Closed
Backwards Compatibility: Fully Compatible
Sprint: Sharding 2022-07-11
Participants:

 Description   

Create a new base class ShardingDataTransformCumulativeMetricsFieldNameProvider which has functions returning the field names for cumulative metrics fields which are shared by both resharding and global indexes. For fields which are logically shared by both, but have different field names (e.g. documentsCopied in resharding and keysWrittenFromScan in global indexes), those functions should be pure virtual.

ShardingDataTransformCumulativeMetrics should accept an instance of this class in its constructor and use it when reporting its fields. The existing field name constants should also be removed, where possible.

Of the existing fields, all are shared either directly or logically except for the following, which will be addressed by SERVER-67108:

  • oplogEntriesFetched
  • oplogEntriesApplied
  • insertsApplied
  • updatesAppied
  • deletesApplied
  • oplogFetchingTotalRemoteBatchRetrievalTimeMillis
  • oplogFetchingTotalRemoteBatchesRetrieved
  • oplogFetchingTotalLocalInsertTimeMillis
  • oplogFetchingTotalLocalInserts
  • oplogApplyingTotalLocalBatchRetrievalTimeMillis
  • oplogApplyingTotalLocalBatchesRetrieved
  • oplogApplyingTotalLocalBatchApplyTimeMillis
  • oplogApplyingTotalLocalBatchesApplied
  • All state field names (i.e. those in the section "currentInSteps")


 Comments   
Comment by Githook User [ 13/Jul/22 ]

Author:

{'name': 'Brett Nawrocki', 'email': 'brett.nawrocki@mongodb.com', 'username': 'brettnawrocki'}

Message: SERVER-67107 Create SDT Cumulative Metrics Field Name Provider Base
Branch: master
https://github.com/mongodb/mongo/commit/0268aa7d2fdd9a4f2904d85b9af9d95ce5d16285

Generated at Thu Feb 08 06:07:19 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.