[SERVER-25999] Mongos applies errors received from config server as config server errors, rather than a shard the config server calls and returns the error from Created: 07/Sep/16  Updated: 06/Mar/20  Resolved: 01/Nov/16

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

Type: Bug Priority: Major - P3
Reporter: Dianna Hohensee (Inactive) Assignee: Dianna Hohensee (Inactive)
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
related to SERVER-46669 moveChunk may succeed but not respect... Closed
is related to SERVER-26307 MigrationManager can keep a migration... Closed
is related to SERVER-26760 ShardingCatalogManagerImpl::addShard(... Closed
is related to SERVER-26857 Handle multiple server error propagat... Closed
Backwards Compatibility: Fully Compatible
Operating System: ALL
Sprint: Sharding 2016-10-10, Sharding 2016-10-31, Sharding 2016-11-21
Participants:

 Description   

ShardRemote::updateReplSetMonitor marks a host as not master on InterruptedDueToReplStateChange errors. However, a mongos can send a command to the config, which then sends to a shard, and the shard returns the error, but the mongos marks the config server as not master.

This is generally true of all errors that are interpreted as the first contacted server's fault, not any subsequent servers that are called down the line.

This is an issue for existing config commands that forward commands to the shards and return that result (like the balancer!)



 Comments   
Comment by Githook User [ 28/Oct/16 ]

Author:

{u'username': u'DiannaHohensee', u'name': u'Dianna Hohensee', u'email': u'dianna.hohensee@10gen.com'}

Message: SERVER-25999 add list of error codes to Shard that can be used to determine whether remote command errors should be propogated further back to other servers
Branch: master
https://github.com/mongodb/mongo/commit/53efde3280dd6a880987150777f5a26143df59e1

Comment by Esha Maharishi (Inactive) [ 06/Oct/16 ]

addShard does this in at least one place:

https://github.com/mongodb/mongo/blob/r3.3.15/src/mongo/s/catalog/sharding_catalog_manager_impl.cpp#L493-L499

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