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

Write automation test for read and writes after TenantMigration completes

    XMLWordPrintableJSON

Details

    • Icon: Task Task
    • Resolution: Fixed
    • Icon: Major - P3 Major - P3
    • 5.2.0
    • None
    • None
    • None
    • Fully Compatible
    • Server Serverless 2021-10-25, Server Serverless 2021-11-01, Server Serverless 2021-11-15

    Description

      While working on SERVER-60599 it was decided to also add the following test cases :

      • Have a TenantMigration finish and return committed and then access in read / write. The count and insert commands (read and write) should not work since it should return "committed" and the mongos hasn't updated its routing table to route to the new owner (using commandFailedWithCode - ErrorCodes.TenantMigrationCommitted)
      • Have a TenantMigration started and then aborted. Then try to read and write (using count and insert) on the database. This should work (commandWorked should succeed) since the migration was aborted and therefor the owner hasn't changed. 

       

      Attachments

        Activity

          People

            mathis.bessa@mongodb.com Mathis Bessa
            mathis.bessa@mongodb.com Mathis Bessa
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: