[SERVER-6383] mongos.exe --remove should not validate for the configdb option Created: 10/Jul/12  Updated: 10/May/22

Status: Backlog
Project: Core Server
Component/s: Admin, Sharding
Affects Version/s: 2.2.0-rc0
Fix Version/s: None

Type: Bug Priority: Minor - P4
Reporter: Sridhar Nanjundeswaran Assignee: DO NOT USE - Backlog - Platform Team
Resolution: Unresolved Votes: 0
Labels: Windows, move-sa, neweng, platforms-re-triaged
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Windows 7, 2.1.3-pre 2008+ build from 7/9/2012


Issue Links:
Depends
Operating System: ALL
Participants:

 Description   

Install mongos as a service with the default service name
To remove run mongos.exe --remove. This should allow the service to be removed without validating a configdb is required. This fails with no args for --configdb
c:\mongo\mongodb-win32-x86_64-2008plus-2012-07-09\bin>mongos.exe --remove
Tue Jul 10 13:07:33 error: no args for --configdb



 Comments   
Comment by Steven Vannelli [ 10/May/22 ]

Moving this ticket to the Backlog and removing the "Backlog" fixVersion as per our latest policy for using fixVersions.

Comment by Sridhar Nanjundeswaran [ 10/Jul/12 ]

Removing without logpath which is the other required parameter for install works correctly as expected.

Also note we should remove the warning about 1 config server on remove

mongos.exe --configdb localhost:30000 --remove
Tue Jul 10 13:13:25 warning: running with 1 config server should be done only for testing purposes and is not recommended for production
Tue Jul 10 13:13:25 Trying to remove Windows service 'MongoS'
Tue Jul 10 13:13:25 Service MongoS is currently running, stopping service
Tue Jul 10 13:13:25 Service 'MongoS' stopped
Tue Jul 10 13:13:25 Service 'MongoS' removed

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