[SERVER-75551] Increase threshold for slow primaryOnlyService in unittest to avoid test failure in slow environment Created: 31/Mar/23  Updated: 29/Oct/23  Resolved: 03/Apr/23

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

Type: Bug Priority: Major - P3
Reporter: Jiawei Yang Assignee: Jiawei Yang
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
Backwards Compatibility: Fully Compatible
Operating System: ALL
Sprint: Repl 2023-04-03, Repl 2023-04-17
Participants:
Linked BF Score: 42

 Description   

In unittest PrimaryOnlyServiceLogSlowServices, we expect every PrimaryOnlyService to stepUp in 200ms if everything works normal. However, in some slow test environment(e.g. Windows-Debug), it usually takes longer than 200ms to complete stepUp.

In this case, we should configure the threshold to be way longer than 200ms in unittests, for example, 5s.



 Comments   
Comment by Githook User [ 03/Apr/23 ]

Author:

{'name': 'Jiawei Yang', 'email': 'jiawei.yang@mongodb.com', 'username': 'YoungYang0820'}

Message: SERVER-75551 change threshold in slow PrimaryOnlyService stepup test to a larger value
Branch: master
https://github.com/mongodb/mongo/commit/bb7497ecfdd45b7e87c0015aa515e2838414318d

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