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

Add TTL unit tests that require reproducing timing conditions

    • Type: Icon: Engineering Test Engineering Test
    • Resolution: Unresolved
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • None
    • Storage Execution
    • Execution Team 2025-01-06

      There are some paths in TTL that require specific timing conditions to be tested, we need to examine these and see what's feasible and add tests as appropriate.

      • index not found in getValidTTLIndex called from _deleteExpiredWithIndex
        • index needs to be deleted before we get here,
        • but after doTTLIndexDelete in a non-clustered collection
      • part of replset, not readable
        • beginning of _doTTLSubPass
        • we are during initial sync
        • should skip
      • doTTLIndexDelete
        • collection has already been dropped by the time we get here

            Assignee:
            binh.vo@mongodb.com Binh Vo
            Reporter:
            binh.vo@mongodb.com Binh Vo
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: