Details
-
Task
-
Resolution: Fixed
-
Major - P3
-
None
-
None
-
None
-
Fully Compatible
-
Server Serverless 2021-11-15
Description
findAndModify on mongos/mongoq checks for a routing error from the targeted shard here in its command body and throws if it finds one. The exception is caught here in mongos/mongoq, where mongos/mongoq retries the findAndModify.
This ticket is to include TenantMigrationAborted in the list of routing errors that is checked, thrown, and caught. The existing jstest that findAndModify passes TenantMigrationAborted back to the client should be updated to assert the findAndModify now succeeds since mongos/mongoq retries internally.