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
- is caused by
-
SERVER-73984 setAllowMigrationsAndBumpOneChunk should send the refresh to all shards
- Closed
- is duplicated by
-
SERVER-74477 Remove AllowMigrationsRefreshToAll feature flag
- Closed