[SERVER-67189] ShardingDataTransformInstanceMetrics reads uninitialized value Created: 10/Jun/22  Updated: 29/Oct/23  Resolved: 15/Jun/22

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

Type: Bug Priority: Major - P3
Reporter: Randolph Tan Assignee: Randolph Tan
Resolution: Fixed Votes: 0
Labels: sharding-nyc-subteam1
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
depends on SERVER-67191 PrimaryOnlyService should destroy the... Closed
Backwards Compatibility: Fully Compatible
Operating System: ALL
Sprint: Sharding NYC 2022-06-13, Sharding 2022-06-27
Participants:
Linked BF Score: 33

 Description   

when registering new metrics.

When it creates a new instance here, it registers the observer to itself to the cumulative metrics class. This will then the trigger the comparator to check the values of the startTime. However, the startTime value is initialized after the registration so it is reading an uninitialized value.



 Comments   
Comment by Githook User [ 15/Jun/22 ]

Author:

{'name': 'Randolph Tan', 'email': 'randolph@10gen.com', 'username': 'renctan'}

Message: SERVER-67189 Fix initilization order for ShardingDataTransformInstanceMetrics::_startTime
Branch: master
https://github.com/mongodb/mongo/commit/9e0980701ed69dae443dd101beacfed0c98f3144

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