[SERVER-24740] Remove print statements from assert.soon() calls in sharding/repl_monitor_refresh.js Created: 22/Jun/16  Updated: 25/Jan/17  Resolved: 23/Jun/16

Status: Closed
Project: Core Server
Component/s: Sharding
Affects Version/s: None
Fix Version/s: 3.3.9

Type: Task Priority: Major - P3
Reporter: Andy Schwerin Assignee: Andy Schwerin
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
Related
is related to SERVER-24772 Remove print statements from assert.s... Closed
Backwards Compatibility: Fully Compatible
Sprint: Sharding 16 (06/24/16)
Participants:
Linked BF Score: 0

 Description   

Printing in every iteration of assert.soon() is an anti-pattern that can cause slow or I/O bound test machines to fail to reach the goal state before the assert.soon() timeout expires. This patch adjusts sharding/repl_monitor_refresh.js to only print when assert.soon() fails.



 Comments   
Comment by Githook User [ 23/Jun/16 ]

Author:

{u'username': u'andy10gen', u'name': u'Andy Schwerin', u'email': u'schwerin@mongodb.com'}

Message: SERVER-24740 Print less to the logs during sharding/repl_monitor_refresh.js

Printing in every iteration of assert.soon() is an anti-pattern that can cause
slow or I/O bound test machines to fail to reach the goal state before the
assert.soon() timeout expires. This patch adjusts
sharding/repl_monitor_refresh.js to only print when assert.soon() fails.
Branch: master
https://github.com/mongodb/mongo/commit/8f45c2c60ff72c5b6e46a26b72a3b144ccee0bf0

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