[SERVER-17233] Make test 32bit.js reproducible Created: 09/Feb/15  Updated: 18/Sep/15  Resolved: 09/Feb/15

Status: Closed
Project: Core Server
Component/s: Testing Infrastructure
Affects Version/s: None
Fix Version/s: 3.0.0-rc9, 3.1.0

Type: Improvement Priority: Major - P3
Reporter: Matt Kangas Assignee: Matt Kangas
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
Backwards Compatibility: Fully Compatible
Backport Completed:
Participants:
Linked BF Score: 0

 Description   

The jstest {[slow2/32bit.js}} was useful for identifying issues resolved in SERVER-16997, but the test incorrectly assumes Math.random() may be seeded in Javascript.

Fix the test so it uses a random number generator which accepts a seed value. Also fix incorrect write error handling and clarify the test logic.



 Comments   
Comment by Githook User [ 09/Feb/15 ]

Author:

{u'username': u'kangas', u'name': u'Matt Kangas', u'email': u'matt.kangas@mongodb.com'}

Message: SERVER-17233 32bit.js make jstest reproducible

Also check for write error each time through loop

(cherry picked from commit 8d3013163471f805fa68fbaa027d5686c4beb762)
Branch: v3.0
https://github.com/mongodb/mongo/commit/7f5df52b3a48b1ab028e8453443de67f8fe46155

Comment by Githook User [ 09/Feb/15 ]

Author:

{u'username': u'kangas', u'name': u'Matt Kangas', u'email': u'matt.kangas@mongodb.com'}

Message: SERVER-17233 32bit.js fix whitespace

(cherry picked from commit 56fa6f8021da4a3eba4f494643fe33cdafd5dc78)
Branch: v3.0
https://github.com/mongodb/mongo/commit/b42f74998bd3d4aa3bfc940999d0d3d2648e0e6b

Comment by Githook User [ 09/Feb/15 ]

Author:

{u'username': u'kangas', u'name': u'Matt Kangas', u'email': u'matt.kangas@mongodb.com'}

Message: SERVER-17233 dos2unix 32bit.js

(cherry picked from commit da246198e44dc10d61c8fd2069f0cb0955be8c04)
Branch: v3.0
https://github.com/mongodb/mongo/commit/5cc0caf2a09ee91c5e282df734bd2886c97edd58

Comment by Githook User [ 09/Feb/15 ]

Author:

{u'username': u'kangas', u'name': u'Matt Kangas', u'email': u'matt.kangas@mongodb.com'}

Message: SERVER-17233 32bit.js make jstest reproducible

Also check for write error each time through loop
Branch: master
https://github.com/mongodb/mongo/commit/8d3013163471f805fa68fbaa027d5686c4beb762

Comment by Githook User [ 09/Feb/15 ]

Author:

{u'username': u'kangas', u'name': u'Matt Kangas', u'email': u'matt.kangas@mongodb.com'}

Message: SERVER-17233 32bit.js fix whitespace
Branch: master
https://github.com/mongodb/mongo/commit/56fa6f8021da4a3eba4f494643fe33cdafd5dc78

Comment by Githook User [ 09/Feb/15 ]

Author:

{u'username': u'kangas', u'name': u'Matt Kangas', u'email': u'matt.kangas@mongodb.com'}

Message: SERVER-17233 dos2unix 32bit.js
Branch: master
https://github.com/mongodb/mongo/commit/da246198e44dc10d61c8fd2069f0cb0955be8c04

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