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

XMLWordPrintableJSON

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

      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
              Reporter:
              Vishnu Kaushik
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: