[SERVER-976] mongos stops allowing new connections Created: 06/Apr/10  Updated: 12/Jul/16  Resolved: 28/Sep/10

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

Type: Bug Priority: Major - P3
Reporter: Kristina Chodorow (Inactive) Assignee: Eliot Horowitz (Inactive)
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

~/gitroot/p> ./mongos --configdb localhost:20000
Tue Apr 6 11:30:53 ./mongos v0.3 (alpha 3) starting (--help for usage)
Tue Apr 6 11:30:53 git version: 41e683a2a50ed945eae630e7ffe8f169b53f3377
Tue Apr 6 11:30:53 sys info: Linux ubuntu 2.6.31-15-generic #50-Ubuntu SMP Tue Nov 10 14:54:29 UTC 2009 i686 BOOST_LIB_VERSION=1_38


Participants:

 Description   

After working for a while with mongos, a config db, and one shard (nothing on it), mongos stops accepting connections. E.g.,

~/gitroot/p> ./mongo
MongoDB shell version: 1.3.5-pre-
url: test
connecting to: test

...never finishes and shows the '>'.

Log:
Tue Apr 6 13:45:57 connection accepted from 127.0.0.1:31931 #73
Tue Apr 6 13:45:57 passing through unknown command: whatsmyuri

{ whatsmyuri: 1 }

It doesn't happen immediately, it's only after I've been working a while.



 Comments   
Comment by auto [ 29/Sep/10 ]

Author:

{'login': 'kchodorow', 'name': 'Kristina Chodorow', 'email': 'kristina@10gen.com'}

Message: don't allow adding mongos as a shard SERVER-976
http://github.com/mongodb/mongo/commit/47a3115e8beeffcc97bf3a3b46c155e357a3cc2d

Comment by auto [ 28/Sep/10 ]

Author:

{'login': 'kchodorow', 'name': 'Kristina Chodorow', 'email': 'kristina@10gen.com'}

Message: don't allow adding mongos as a shard SERVER-976
http://github.com/mongodb/mongo/commit/47a3115e8beeffcc97bf3a3b46c155e357a3cc2d

Comment by Kristina Chodorow (Inactive) [ 08/Apr/10 ]

Okay, figured out how to reproduce it. Little weird, but:

1. Start config db & mongos:

$ ./mongod --dbpath ~/sharding/config --port 20000
$ ./mongos --configdb localhost:20000

2. Run in the shell:

> use admin
switched to db admin
> db.runCommand(

{addshard : "localhost:27017", allowLocal:true}

)

The command will never return and mongos will be unable to create new connections.

Generated at Thu Feb 08 02:55:42 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.