[DOCS-8928] mongos and shards will become unusable if contact is lost with all CSRS config server nodes for more than 30 seconds Created: 28/Sep/16  Updated: 30/Oct/23  Resolved: 31/Jul/17

Status: Closed
Project: Documentation
Component/s: Server
Affects Version/s: None
Fix Version/s: Server_Docs_20231030

Type: Task Priority: Major - P3
Reporter: Emily Hall Assignee: Kay Kim (Inactive)
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Documented
documents SERVER-23192 mongos and shards will become unusabl... Closed
Participants:
Days since reply: 6 years, 28 weeks, 2 days ago
Epic Link: 3.4: Sharding Updates

 Description   

If mongos loses network contact with all nodes from the CSRS config server set (both primary and secondaries), the replica set monitor will deem this set as as 'unusable' and will stop monitoring it.

From this point onward all operations which need to access some config server metadata will begin failing with the following error:

> db.foo.find().itcount();
 
2016-03-16T16:59:20.941-0400 E QUERY    [thread1] Error: error: {
        "code" : 71,
        "ok" : 0,
        "errmsg" : "None of the hosts for replica set test-configRS could be contacted."
} :
_getErrorWithCode@src/mongo/shell/utils.js:25:13
DBCommandCursor@src/mongo/shell/query.js:694:1
DBQuery.prototype._exec@src/mongo/shell/query.js:118:28
DBQuery.prototype.hasNext@src/mongo/shell/query.js:281:5
DBQuery.prototype.itcount@src/mongo/shell/query.js:407:12
@(shell):1:16

This includes the refresh of the list of shards, which needs to be read from the config server metadata. Therefore, currently there is no procedure to restart or retry monitoring of the config server set and the only recourse is to restart mongos.



 Comments   
Comment by Githook User [ 31/Jul/17 ]

Author:

{'email': 'kay.kim@10gen.com', 'username': 'kay-kim', 'name': 'kay'}

Message: DOCS-8928 sharded clusters restart if no config servers
Branch: v3.4
https://github.com/mongodb/docs/commit/25b2695b9564970aff38697d59b745865babf743

Comment by Githook User [ 31/Jul/17 ]

Author:

{'email': 'kay.kim@10gen.com', 'username': 'kay-kim', 'name': 'kay'}

Message: DOCS-8928 sharded clusters restart if no config servers
Branch: v3.2
https://github.com/mongodb/docs/commit/890741b5f6a8169fb8aa146b35923eb88eca9a02

Comment by Githook User [ 31/Jul/17 ]

Author:

{'email': 'kay.kim@10gen.com', 'username': 'kay-kim', 'name': 'kay'}

Message: DOCS-8928 sharded clusters restart if no config servers
Branch: master
https://github.com/mongodb/docs/commit/8eb860dcacf0b9fee0d8d9718acb9ab6d5016d1a

Generated at Thu Feb 08 07:57:15 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.