-
Type: Bug
-
Resolution: Gone away
-
Priority: Major - P3
-
None
-
Affects Version/s: 3.0.14, 3.2.12, 3.4.2
-
Component/s: Sharding
-
None
-
ALL
-
Sharding 2017-03-27
When used as part of sharding, the ReplicaSetMonitor causes the config.shards entry for a particular replica set shard to be kept up to date as the replica set's membership changes.
If for whatever reason parsing the isMaster response fails, the RSM will consider the replica set as containing no hosts and will write a bad entry to config.shards and that entry will eventually be read by all other shards and mongos instances, rendering the shard unusable until manually repaired. This was evidenced in SERVER-27793 and the specific error is in this comment.
In order to be on the safe side, if the RSM fails to parse the isMaster response for any reason, it should log a warning, but not cause update of config.shards.
- related to
-
SERVER-27793 'exception while parsing isMaster reply: BSONElement: bad type 101' causes empty shard connection string to be written to config.shards
- Closed