Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-25450

MongoRunner.runMongoTool() attempts to pass --dialTimeout option to bsondump

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 3.3.11
    • Affects Version/s: None
    • Component/s: Testing Infrastructure
    • None
    • Fully Compatible
    • ALL
    • Hide
      ./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
      
      Show
      ./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
    • Query 18 (08/05/16)
    • 0

      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:

            Assignee:
            max.hirschhorn@mongodb.com Max Hirschhorn
            Reporter:
            max.hirschhorn@mongodb.com Max Hirschhorn
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: