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

Make too_stale_secondary.js oplog rollover more deterministic

    • Type: Icon: Bug Bug
    • Resolution: Unresolved
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • Labels:
      None
    • ALL
    • Repl 2024-04-29, Repl 2024-05-13
    • 0

      Currently, the approach this test uses to make the primary oplog rollover is to just repeatedly insert until we observe the first oplog entry has changed.

      This does not lead to a deterministic number of inserts being done, and in certain rare situations it is possible that we do enough inserts to overflow both the primary and secondary oplogs before the primary oplog is truncated, which can cause this test to fail.

      We should switch this test to use an approach similar to / the same as oplog_rollover_test.js which performs a specific number of inserts that should overflow the oplog and additionally uses a failpoint to pause the oplog cap maintainer thread as needed to make its behavior more predictable. See the comments in that test for details.

            Assignee:
            kaitlin.mahar@mongodb.com Kaitlin Mahar
            Reporter:
            kaitlin.mahar@mongodb.com Kaitlin Mahar
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: