[SERVER-22666] upgrade procedure testing for mongod instances aware that they are part of a sharded cluster Created: 16/Feb/16  Updated: 25/Jan/17  Resolved: 06/Sep/16

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

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

Backwards Compatibility: Fully Compatible
Sprint: Sharding 18 (08/05/16), Sharding 2016-08-29, Sharding 2016-09-19
Participants:

 Comments   
Comment by Githook User [ 06/Sep/16 ]

Author:

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

Message: SERVER-22666 Test that basic sharded cluster upgrade procedure properly makes all shards sharding aware
Branch: master
https://github.com/mongodb/mongo/commit/8081859b784662566c6efa3f06a2e6ffd4912afa

Comment by Githook User [ 06/Sep/16 ]

Author:

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

Message: SERVER-22666 Cleanup jstests/multiversion/upgrade_cluster.js
Branch: master
https://github.com/mongodb/mongo/commit/07d959bfce8da4f07bb9359aa0b4bb6af2d13b80

Comment by Esha Maharishi (Inactive) [ 30/Aug/16 ]

Good idea; we have some pretty thorough unit tests of the retry logic, but no jstests:

https://github.com/mongodb/mongo/blob/96d6fcb0c18e7d3e99bce7877714e32ed1313bbf/src/mongo/s/catalog/replset/sharding_catalog_add_shard_test.cpp#L1092-L1401

I'd recommend extending shard_aware_on_config_election.js to add cases where we need to retry, and maybe try to determine what additional coverage jstests could give:

https://github.com/mongodb/mongo/blob/6bf9fd2e5a5f043b950cb77361be3c1ed7a7d0af/jstests/sharding/shard_aware_on_config_election.js#L107-L115

Comment by Spencer Brody (Inactive) [ 30/Aug/16 ]

As part of this, let's make sure to include that when the configsvr tries to insert the shardIdentity document on one of the shards it fails the first time, to test the retry logic.

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