[SERVER-25623] addShard should fail if shard's binary version < the cluster's featureCompatibilityVersion Created: 15/Aug/16  Updated: 12/Oct/17  Resolved: 02/Oct/17

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

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

Issue Links:
Depends
Related
related to SERVER-25514 prevent 3.4 config from adding a 3.2 ... Closed
Backwards Compatibility: Fully Compatible
Sprint: Sharding 2017-10-02, Sharding 2017-10-23
Participants:
Linked BF Score: 0

 Description   

In general the upgrade order for a sharded cluster is config servers first, then shards, then mongoses. Thus it is illegal for a mongos from the current version to ever talk to a mongod from the previous version. To enforce this, we need to prevent new mongoses from processing an addShard request that will result in an old mongod being added to the cluster. For the 3.2->3.4 upgrade we handled this in SERVER-25514, but that approach won't work for the 3.4->3.6 upgrade.



 Comments   
Comment by Githook User [ 03/Oct/17 ]

Author:

{'email': 'esha.maharishi@mongodb.com', 'name': 'Esha Maharishi', 'username': 'EshaMaharishi'}

Message: SERVER-25623 fix config_server_catalog_test unit test
Branch: master
https://github.com/mongodb/mongo/commit/f50acb128dc0485b48d8045587579ba48ae888b4

Comment by Githook User [ 02/Oct/17 ]

Author:

{'email': 'esha.maharishi@mongodb.com', 'name': 'Esha Maharishi', 'username': 'EshaMaharishi'}

Message: SERVER-25623 addShard should fail if shard's binary version < the cluster's featureCompatibilityVersion

move add_invalid_shard.js to jstests/multiVersion since it starts a 'last-stable' mongod
Branch: master
https://github.com/mongodb/mongo/commit/a7efca41eb8b864f38239a77e2816b24c48fa899

Comment by Githook User [ 02/Oct/17 ]

Author:

{'email': 'ian.whalen@gmail.com', 'name': 'Ian Whalen', 'username': 'IanWhalen'}

Message: Revert "SERVER-25623 addShard should fail if shard's binary version < the cluster's featureCompatibilityVersion"

This reverts commit 80b4173ab3ad46eed8f4f482e5fe34bf6546d2e6.
Branch: master
https://github.com/mongodb/mongo/commit/837b59353962320c8adf5497ac5106e6f4353183

Comment by Githook User [ 02/Oct/17 ]

Author:

{'email': 'esha.maharishi@mongodb.com', 'name': 'Esha Maharishi', 'username': 'EshaMaharishi'}

Message: SERVER-25623 addShard should fail if shard's binary version < the cluster's featureCompatibilityVersion
Branch: master
https://github.com/mongodb/mongo/commit/80b4173ab3ad46eed8f4f482e5fe34bf6546d2e6

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