SERVER-137819ClosedFixed

Retry CSRS demotion related InvalidOptions for collMod in replica_sets_transition_to_csrs suite

There are some places where a collMod sent *directly* to a shard (i.e. a mongod with sharding Grid initialized) may try to contact the CSRS: [1|https://github.com/mongodb/mongo/blob/3b35b031787090e1598d08028cfcf74bdf5d2b13/src/mongo/db/shard_role/shard_catalog/coll_mod.cpp#L140-L159], [2|https://github.com/mongodb/mongo/blob/3b35b031787090e1598d08028cfcf74bdf5d2b13/src/mongo/db/shard_role/ddl/collmod_cmd.cpp#L120-L137]. This is problematic during demotion of config server to replica set, as n

Affected Versions
Versions known to exhibit this issue
8.3.09.1.0-rc09.0.0
Fixed Versions
Versions that include the fix
9.1.0-rc09.1.0-rc10259.0.98.3.18
Components
Server components related to this issue

No components specified.

Labels
Tags and classification

No labels assigned.