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

tenant_migration_donor_retry.js state docs can be cleaned up prior to assertions against them

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 6.0.3, 6.1.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • None
    • Fully Compatible
    • ALL
    • v6.0
    • Server Serverless 2022-07-11, Server Serverless 2022-07-25
    • 35

      runMigration defaults automaticForgetMigration to true, so it is possible that by the time we (manually) call recipientForgetMigration, the state doc could have already been cleaned up. we should disable automaticForgetMigration and explicitly call recipientForgetMigration to make it more obvious what the test is doing.

      likewise, tests in this file also mark state docs as garbage collectable and then run queries for said state docs, which means we can run into race conditions if the doc is cleaned up before we query it.

            Assignee:
            christopher.caplinger@mongodb.com Christopher Caplinger
            Reporter:
            christopher.caplinger@mongodb.com Christopher Caplinger
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: