[SERVER-25450] MongoRunner.runMongoTool() attempts to pass --dialTimeout option to bsondump Created: 05/Aug/16  Updated: 13/Aug/16  Resolved: 05/Aug/16

Status: Closed
Project: Core Server
Component/s: Testing Infrastructure
Affects Version/s: None
Fix Version/s: 3.3.11

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

Issue Links:
Depends
Backwards Compatibility: Fully Compatible
Operating System: ALL
Steps To Reproduce:

./mongo --nodb --eval 'MongoRunner.runMongoTool("bsondump", {}, "example.bson")'

Output

2016-08-05T09:55:18.653-0400 I -        [thread1] shell: started program (sh20109):  /Users/maxh/Documents/GitHub/mongo/bsondump --dialTimeout 30 example.bson
sh20109| 2016-08-05T09:55:18.660-0400 error parsing command line options: unknown option "dialTimeout"
sh20109| 2016-08-05T09:55:18.660-0400 try 'bsondump --help' for more information

Sprint: Query 18 (08/05/16)
Participants:
Linked BF Score: 0

 Description   

The commit ff0fa50 made it so that the --dialTimeout command line option is no longer accepted by the bsondump tool. The bsondump tool reads from a file and doesn't connect to a server so it doesn't make sense to pass it the --dialTimeout option. We should update the code in the mongo shell that applies the --dialTimeout command line option to do so based on the name of the tool:



 Comments   
Comment by Githook User [ 05/Aug/16 ]

Author:

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

Message: SERVER-25450 Don't pass --dialTimeout to bsondump in runMongoTool().
Branch: master
https://github.com/mongodb/mongo/commit/71c9d90d608dff22ddda4ddd9280abac7c131992

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