[SERVER-34367] cpp tests calling nextCloneBatch can get fewer results on slow machines Created: 06/Apr/18  Updated: 29/Oct/23  Resolved: 30/Apr/18

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

Type: Bug Priority: Major - P3
Reporter: Randolph Tan Assignee: Randolph Tan
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: Sharding 2018-05-07
Participants:
Linked BF Score: 65

 Description   

This is because the method has a yield mechanic based on elapsed time that can make it return prematurely:

https://github.com/mongodb/mongo/blob/r3.7.3/src/mongo/db/s/migration_chunk_cloner_source_legacy.cpp#L481



 Comments   
Comment by Githook User [ 30/Apr/18 ]

Author:

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

Message: SERVER-34367 Change test to use clock source mock to control yield timing
Branch: master
https://github.com/mongodb/mongo/commit/c734bb32c3237f67a99c47ca3835967909c2e2d1

Generated at Thu Feb 08 04:36:26 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.