[SERVER-21164] Change assert to throw in rslib.js's wait loop Created: 27/Oct/15  Updated: 16/Nov/16  Resolved: 11/Dec/15

Status: Closed
Project: Core Server
Component/s: Replication, Shell, Testing Infrastructure
Affects Version/s: 3.2.0-rc1
Fix Version/s: 3.2.1, 3.3.0

Type: Task Priority: Major - P3
Reporter: Robert Guo (Inactive) Assignee: Jonathan Abrahams
Resolution: Done Votes: 0
Labels: test-only
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
Backwards Compatibility: Fully Compatible
Backport Completed:
Sprint: TIG B (10/30/15), TIG E (01/08/16)
Participants:

 Description   

There's an assert in a while loop in rslib.js's wait function. It'd be nice if it could be changed to a throw instead, so that there won't be an infinite loop if assert is intentionally overridden in some tests



 Comments   
Comment by Githook User [ 11/Dec/15 ]

Author:

{u'username': u'hptabster', u'name': u'Jonathan Abrahams', u'email': u'jonathan@mongodb.com'}

Message: SERVER-21164 Use throw instead of assert in rslib.js wait loop

(cherry picked from commit 8fef1b5e7aea0d5b8683b580487b1e22e3a30c41)
Branch: v3.2
https://github.com/mongodb/mongo/commit/bb7e7fc215e4c7a08bf8f525cbdd0b1a4c720c1f

Comment by Githook User [ 11/Dec/15 ]

Author:

{u'username': u'hptabster', u'name': u'Jonathan Abrahams', u'email': u'jonathan@mongodb.com'}

Message: SERVER-21164 Use throw instead of assert in rslib.js wait loop
Branch: master
https://github.com/mongodb/mongo/commit/8fef1b5e7aea0d5b8683b580487b1e22e3a30c41

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