findAndModify on mongos/mongoq handles TenantMigrationAborted

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Fixed
    • Priority: Major - P3
    • 5.2.0
    • Affects Version/s: None
    • Component/s: None
    • None
    • Fully Compatible
    • Server Serverless 2021-11-15
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      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.

            Assignee:
            Mathis Bessa (Inactive)
            Reporter:
            Esha Maharishi (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: