Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-61153

findAndModify on mongos/mongoq handles TenantMigrationAborted

    XMLWordPrintableJSON

Details

    • Icon: Task Task
    • Resolution: Fixed
    • Icon: Major - P3 Major - P3
    • 5.2.0
    • 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.

      Attachments

        Activity

          People

            mathis.bessa@mongodb.com Mathis Bessa
            esha.maharishi@mongodb.com Esha Maharishi (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: