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

Make _logOplogEntriesForInvalidResults resilient to non-existing oplog

    • Type: Icon: Improvement Improvement
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 7.2.0-rc0, 5.0.22, 7.0.3, 6.0.12
    • Affects Version/s: None
    • Component/s: None
    • Labels:
      None
    • Storage Execution
    • Fully Compatible
    • v7.1, v7.0, v6.0, v5.0
    • Execution NAMR Team 2023-09-18

      _logOplogEntriesForInvalidResults does not check if the oplog pointer is valid.

      One case where this could happen was when running validate on a replica set member started as standalone. Even though the oplog existed, AutoGetOplog returned nullptr. This is being handled in SERVER-80789.

      The other possibility is that the oplog doesn't actually exist because the node has always been standalone. We should check if it is possible to hit this code with timestamps in recordTimestamps (passing this check) in this case, and if so make the code resilient.

            Assignee:
            benety.goh@mongodb.com Benety Goh
            Reporter:
            yujin.kang@mongodb.com Yujin Kang Park
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: