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

check oplog fast count before restarting server in oplog_sampling.js

    • Type: Icon: Improvement Improvement
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 7.0.0-rc0, 6.0.6, 5.0.17
    • Affects Version/s: None
    • Component/s: None
    • None
    • Storage Execution
    • Fully Compatible
    • v6.3, v6.0, v5.0
    • Execution Team 2023-04-17
    • 13

      We have occasionally seen failures in oplog_sampling.js where the oplog stones logic at startup chooses the scanning method over the sampling option for the oplog stones. This has been attributed to an incorrect size storer/fast count persisted for the oplog collection at shutdown despite having inserted enough documents to trigger the sampling logic.

      To help diagnose future occurence of this test failure, we can make the test failure earlier by detecting the incorrect fast count before shutdown rather than let the test proceed to the restart stage where the fast count would be corrected by the oplog scanning logic.

      This would have the benefit of. preserving more of the server state with the incorrect counts.

            Assignee:
            benety.goh@mongodb.com Benety Goh
            Reporter:
            benety.goh@mongodb.com Benety Goh
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: