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

Oplog applier InsertGroup cannot group first operation in vector

    • Type: Icon: Improvement Improvement
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 7.2.0-rc0
    • Affects Version/s: None
    • Component/s: Replication
    • Labels:
    • Replication
    • Fully Compatible
    • Repl 2023-10-16, Repl 2023-10-30, Repl 2023-11-13

      The InsertGroup will not group operations starting with (and including) its _doNotGroupBeforePoint iterator, which is set to the last operation grouped in the last attempt, or the start of its operation vector. This means it can never group the first operation in the operation vector. Since there is no "before the beginning" iterator in C++, probably the solution is to make _doNotGroupBeforePoint the first operation not yet grouped, and make InsertGroup not group operations strictly before _doNotGroupBeforePoint.

            Assignee:
            scott.li@mongodb.com Scott Li
            Reporter:
            matthew.russotto@mongodb.com Matthew Russotto
            Votes:
            0 Vote for this issue
            Watchers:
            8 Start watching this issue

              Created:
              Updated:
              Resolved: