[SERVER-13237] benchRun should use a thread-safe random number generator Created: 17/Mar/14  Updated: 19/Sep/15  Resolved: 28/May/15

Status: Closed
Project: Core Server
Component/s: Testing Infrastructure
Affects Version/s: 2.4.9, 2.6.0-rc1
Fix Version/s: 3.0.4, 3.1.4

Type: Bug Priority: Major - P3
Reporter: Spencer Brody (Inactive) Assignee: David Daly
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Backwards Compatibility: Fully Compatible
Operating System: ALL
Backport Completed:
Sprint: CAP - 3.1.4
Participants:

 Description   

The BsonTemplateEvaluator used by benchRun uses rand() which isn't thread-safe on Linux and is synchronizing on Windows. It should be updated to use our internal PseudoRandom class.



 Comments   
Comment by Githook User [ 29/May/15 ]

Author:

{u'username': u'dalyd', u'name': u'dalyd', u'email': u'david.daly@mongodb.com'}

Message: SERVER-13237: benchRun should use a thread-safe random number generator

(cherry picked from commit acc1ebc194ab01f81750a4e60dc78a3a9bac650f)
Branch: v3.0
https://github.com/mongodb/mongo/commit/83316787e7e7515a3222dd2cbf5acd8356d01284

Comment by Githook User [ 28/May/15 ]

Author:

{u'username': u'dalyd', u'name': u'dalyd', u'email': u'david.daly@mongodb.com'}

Message: SERVER-13237: benchRun should use a thread-safe random number generator
Branch: master
https://github.com/mongodb/mongo/commit/acc1ebc194ab01f81750a4e60dc78a3a9bac650f

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