[SERVER-76394] Allow the setAllowMigrations refresh to be sent to all shards in a backportable way Created: 21/Apr/23  Updated: 29/Oct/23  Resolved: 25/Apr/23

Status: Closed
Project: Core Server
Component/s: Sharding
Affects Version/s: None
Fix Version/s: 7.1.0-rc0, 7.0.0-rc1, 6.3.2

Type: Task Priority: Major - P3
Reporter: Allison Easton Assignee: Allison Easton
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Backports
Duplicate
is duplicated by SERVER-74477 Remove AllowMigrationsRefreshToAll fe... Closed
Problem/Incident
is caused by SERVER-73984 setAllowMigrationsAndBumpOneChunk sho... Closed
Backwards Compatibility: Fully Compatible
Backport Requested:
v7.0, v6.3
Sprint: Sharding EMEA 2023-05-01
Participants:

 Description   

SERVER-73984 changed setAllowMigrations to send the refresh to all shards. Because of a problem with views (SERVER-74313), this was introduced with a new feature flag to prevent getting invalid view definition when the refresh was sent to shards that did not know of the collection.

However, implementing this with a feature flag means that it cannot be backported to 6.3 because the feature flag could be enabled with some shards still having the invalid view problem.

This ticket is to implement this change in a different way so that the changes can be backported to 6.3. The logic can be implemented as the following:

  • Try unconditionally to call the command on all shards
  • If you get an invalid view error ---> try only on shards owning chunks


 Comments   
Comment by Githook User [ 28/Apr/23 ]

Author:

{'name': 'Allison Easton', 'email': 'allison.easton@mongodb.com', 'username': 'allisoneaston'}

Message: SERVER-76394 Allow the setAllowMigrations refresh to be sent to all shards in a backportable way

(cherry picked from commit ef5c16cffcca344b011b5d8b01a6840ca5f6f894)
Branch: v6.3
https://github.com/mongodb/mongo/commit/852ba24519ea8321ffd8649102678f70e76ccbff

Comment by Githook User [ 26/Apr/23 ]

Author:

{'name': 'Allison Easton', 'email': 'allison.easton@mongodb.com', 'username': 'allisoneaston'}

Message: SERVER-76394 Allow the setAllowMigrations refresh to be sent to all shards in a backportable way

(cherry picked from commit ef5c16cffcca344b011b5d8b01a6840ca5f6f894)
Branch: v7.0
https://github.com/mongodb/mongo/commit/cf20e9feb75ed469360332f309dcf9c394f337aa

Comment by Githook User [ 25/Apr/23 ]

Author:

{'name': 'Allison Easton', 'email': 'allison.easton@mongodb.com', 'username': 'allisoneaston'}

Message: SERVER-76394 Allow the setAllowMigrations refresh to be sent to all shards in a backportable way
Branch: master
https://github.com/mongodb/mongo/commit/ef5c16cffcca344b011b5d8b01a6840ca5f6f894

Generated at Thu Feb 08 06:32:35 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.