[SERVER-23741] Replace runMongoProgram(<mongo tool>, ...) calls with MongoRunner.runMongoTool(<mongo tool>, {...}) Created: 14/Apr/16  Updated: 20/Nov/16  Resolved: 07/Jun/16

Status: Closed
Project: Core Server
Component/s: Testing Infrastructure
Affects Version/s: None
Fix Version/s: 3.2.8, 3.3.9

Type: Improvement Priority: Major - P3
Reporter: Max Hirschhorn Assignee: Max Hirschhorn
Resolution: Done Votes: 0
Labels: test-only
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
Backwards Compatibility: Fully Compatible
Backport Completed:
Sprint: Query 16 (06/24/16)
Participants:
Linked BF Score: 0

 Description   

SERVER-23474 made it so that MongoRunner.runMongoTool() would apply a --dialTimeout of 30 seconds if none was specified. The dial timeout causes the tool to try connecting for the specified time, which is useful for avoiding spurious test failures on resource-constrained test machines. We should change all places a mongo tool is invoked to call MongoRunner.runMongoTool() in order to take advantage of this.



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

Author:

{u'username': u'visemet', u'name': u'Max Hirschhorn', u'email': u'max.hirschhorn@mongodb.com'}

Message: SERVER-23741 Use MongoRunner.runMongoTool() to run tools from JS tests.

Changes all usages of runMongoProgram(<mongo tool>, ...) to
MongoRunner.runMongoTool(<mongo tool>,

{...}

) to take advantage of the
--dialTimeout command line option supported by the mongo tools.

Adds support for specifying positional arguments to
MongoRunner.runMongoTool() in order to support all invocations of the
bsondump and mongofiles tools.

(cherry picked from commit 01dfe61a6c03307f0384406bfbde486f8de15425)
Branch: v3.2
https://github.com/mongodb/mongo/commit/9bed098dfe197fefe598f7bdfa79a1eb3fa6c299

Comment by Githook User [ 07/Jun/16 ]

Author:

{u'username': u'visemet', u'name': u'Max Hirschhorn', u'email': u'max.hirschhorn@mongodb.com'}

Message: SERVER-23741 Use MongoRunner.runMongoTool() to run tools from JS tests.

Changes all usages of runMongoProgram(<mongo tool>, ...) to
MongoRunner.runMongoTool(<mongo tool>,

{...}

) to take advantage of the
--dialTimeout command line option supported by the mongo tools.

Adds support for specifying positional arguments to
MongoRunner.runMongoTool() in order to support all invocations of the
bsondump and mongofiles tools.
Branch: master
https://github.com/mongodb/mongo/commit/01dfe61a6c03307f0384406bfbde486f8de15425

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