Temporarily guard in-memory size and count initialization oplog scanning behind a feature flag

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Fixed
    • Priority: Major - P3
    • 9.0.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • None
    • Storage Execution
    • Fully Compatible
    • Storage Execution 2026-05-25
    • 200
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      Under severe memory pressure, the current replicated size and count flush can lag behind the tail of the oplog significantly. When a restart happens, initialization of the in-memory size and count needs to scan the oplog entries since the last flush to reconstruct the accurate values. This will block the server from starting up for an extended period of time.

      This ticket is to guard the logic of oplog scanning behind a feature flag. Currently, the correctness testing of replicated size and count is run with all feature flags enabled, so the test coverage of the in-memory read path will be maintained. The performance testing and production do not have the extra feature flag enabled, so the potential regression will not affect them.

            Assignee:
            Yuhong Zhang
            Reporter:
            Yuhong Zhang
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: