[SERVER-25154] unit tests for addShard compatibility path Created: 19/Jul/16  Updated: 13/Aug/16  Resolved: 01/Aug/16

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

Type: Task Priority: Major - P3
Reporter: Esha Maharishi (Inactive) Assignee: Esha Maharishi (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)
Participants:

 Description   

use the ConfigServerTestFixture to mock local writes to the config with ephemeralForTest, and the NetworkInterfaceMock to mock remote writes to the added shard

major cases to test:

  • schedule an addShard task -> check that the shard receives the shardIdentity upsert over the network and the config receives the shard state update locally
  • schedule an addShard task, and make the network return error for shardIdentity upsert -> check that task is rescheduled (shard receives shardIdentity upsert over the network and config receives the shard state locally)
  • schedule two consecutive addShard tasks with the same shard info (simulate two 3.2 mongos's trying to add the same shard) -> check that only one proceeds to send network requests to upsert the shardIdentity doc


 Comments   
Comment by Githook User [ 01/Aug/16 ]

Author:

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

Message: SERVER-25154 unit tests for addShard compatibility path
Branch: master
https://github.com/mongodb/mongo/commit/c169349f8fd5769747d47ca3a984bfd64fc77802

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