[SERVER-13768] sharded listDatabases command not tolerant of replica sets being down Created: 28/Apr/14  Updated: 06/Dec/22  Resolved: 14/Jun/18

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

Type: Bug Priority: Major - P3
Reporter: Greg Studer Assignee: [DO NOT USE] Backlog - Sharding Team
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
related to SERVER-7246 Mongos cannot do slaveOk queries when... Closed
Assigned Teams:
Sharding
Operating System: ALL
Participants:

 Description   

Using "show databases" in a cluster can result in "exception: ReplicaSetMonitor no master found for set" if a replica set primary is down. In larger clusters, this is distracting and may happen regularly.

s/commands_admin.cpp::CmdListDatabases uses a helper "Shard::runCommand()" which should probably be eliminated.



 Comments   
Comment by Kaloian Manassiev [ 14/Jun/18 ]

With the introduction of retries for queries in support of the continuous stepdown suite, this is no longer a problem.

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