[SERVER-25514] prevent 3.4 config from adding a 3.2 shard during _configsvrAddShard Created: 09/Aug/16  Updated: 25/Jan/17  Resolved: 22/Aug/16

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

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

Issue Links:
Related
is related to SERVER-24792 Ensure that mongos from 3.4 will refu... Closed
is related to SERVER-25623 addShard should fail if shard's binar... Closed
Backwards Compatibility: Fully Compatible
Operating System: ALL
Sprint: Sharding 2016-08-29
Participants:

 Description   

check the wire version in the isMaster response in ShardingCatalogManagerImpl::_validateHostAsShard



 Comments   
Comment by Esha Maharishi (Inactive) [ 09/Sep/16 ]

Oh whoops, also I think these comments belong on SERVER-24792! (This ticket is related to that one).

Comment by Esha Maharishi (Inactive) [ 09/Sep/16 ]

nathan.myers, sounds like one of the processes might be crashing before the runCommand() is issued. Let's take a look at it on Monday morning.

Comment by Nathan Myers [ 09/Sep/16 ]

Thus far I have not got any of the commands (insert, update, remove, find, count, aggregate, setShardVersion, ismaster) to fail as expected. When using runCommand(), I am often able to provoke a log warning about the mismatch, but the results are typically { "nInserted: 0, writeError:

{ "code" : 83, "errmsg": "write results unavailable...socket exception ..."}

}. Using the ordinary e.g. "db.users.remove({})" forms, even the warning usually doesn't come up, or surfaces with [CONNECT_ERROR] instead.

Comment by Githook User [ 22/Aug/16 ]

Author:

{u'username': u'stbrody', u'name': u'Spencer T Brody', u'email': u'spencer@mongodb.com'}

Message: SERVER-25514 Prevent a v3.4 mongos from being used to add a v3.2 shard
Branch: master
https://github.com/mongodb/mongo/commit/96d6fcb0c18e7d3e99bce7877714e32ed1313bbf

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