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

disallow invalid term in OpTIme::asQuery() and appendAsQuery()

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 7.0.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • Labels:
      None
    • Storage Execution
    • Fully Compatible
    • ALL
    • Execution Team 2023-02-20

      After removing PV0, we should not have oplog entries with term -1. For subsystems that need to locate oplog entries by optime, we should not be using PV0-style OpTimes.
      OpTime::appendAsQuery() is a function that is used for this purpose and we should be able to disallow invalid/unintialized terms in the function's code rather than querying for a missing term field.

            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: