Wait for deletes to apply on secondaries in internal_sessions_reaping_retryable_writes.js

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Fixed
    • Priority: Major - P3
    • 8.1.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • None
    • Cluster Scalability
    • Fully Compatible
    • ALL
    • v8.0
    • Cluster Scalability 2024-07-22
    • 0
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      jstests/replsets/internal_sessions_reaping_retryable_writes.js tests session reaping logic by manually deleting config.system.session entries and expecting subsequent session reap jobs to observe its effect (e.g. here). The test uses a 2 node replica set and the default write concern of majority, which used to guarantee the local read used by the session reap would observe the deletes, but now that we replicate oplog entries separately from applying them, we aren't guaranteed that, which can lead to failures. The test should be fixed to wait for its deletes to apply on all nodes before continuing.

              Assignee:
              Jack Mulrow
              Reporter:
              Jack Mulrow
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: