[SERVER-2457] mongostat ignores --port when used with --discover Created: 01/Feb/11  Updated: 12/Jul/16  Resolved: 02/Feb/11

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: 1.7.5
Fix Version/s: 1.7.6

Type: Bug Priority: Minor - P4
Reporter: AndrewK Assignee: Eliot Horowitz (Inactive)
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

windows 64bit, haven't tried other OSes


Operating System: Windows
Participants:

 Description   

when using --discover, --port is ignored.

PS D:\bin\mongodb-win32-x86_64-1.7.5\bin> .\mongostat.exe --discover --port 5001

localhost:27017 couldn't connect to server localhost:27017

work around is to use -h

PS D:\bin\mongodb-win32-x86_64-1.7.5\bin> .\mongostat.exe --discover -h localhost:5001

succeeds.



 Comments   
Comment by auto [ 02/Feb/11 ]

Author:

{u'login': u'erh', u'name': u'Eliot Horowitz', u'email': u'eliot@10gen.com'}

Message: fix --port --discover for mongostat SERVER-2457
https://github.com/mongodb/mongo/commit/a8b01fa52171de773633a63a8f48ed6168c8178f

Comment by AndrewK [ 01/Feb/11 ]

this also fails:

PS D:\bin\mongodb-win32-x86_64-1.7.5\bin> .\mongostat.exe --discover --host localhost --port 5001

localhost socket exception

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