Implement the 2-phase oplog notification in CreateCollectionCoordinator

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Fixed
    • Priority: Major - P3
    • 7.0.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • None
    • Fully Compatible
    • Sharding EMEA 2023-03-06, Sharding EMEA 2023-03-20, Sharding EMEA 2023-04-03
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      shardCollection is currently generating an op entry just after committing its metadata into the sharding catalog - and in order to guarantee at-least-once-delivery semantics, also in case of early exits after a stepdown event (1, 2).

      Nevertheless, the current properties of the DDL do not guarantee that the timestamp of the op entry will always predate the time of the first user write within the sharded collection.

      To overcome these inaccuracies, the commit may be described on the oplog through a 2-phase protocol.

            Assignee:
            Enrico Golfieri
            Reporter:
            Paolo Polato
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: