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

tenant_migration_collection_ttl.js must account for race between recipient cloner and donor TTL sweep

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 5.0.4, 5.1.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • Labels:
      None
    • Fully Compatible
    • ALL
    • v5.0
    • 18

      The donor TTL may run before the recipient has had a chance to clone documents, after starting the migration. That would mean the recipient would not clone any documents.

      Therefore, this test, in which we expect recipient-side TTL to be suspended, may not function as intended, because this assertion (that there are documents on the recipient, owing to the recipient TTL being suspended) would fail.

      We should implement some synchronization to mitigate this race, or maybe just a check that observes the race and accordingly skips the test, such as the one implemented in the second half of the test.

            Assignee:
            vishnu.kaushik@mongodb.com Vishnu Kaushik
            Reporter:
            vishnu.kaushik@mongodb.com Vishnu Kaushik
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: