Ensure that shardCollection emits an oplog event on commit time at least once in case of step-down

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Fixed
    • Priority: Major - P3
    • 6.0.4, 6.3.0-rc0
    • Affects Version/s: 6.0.0
    • Component/s: None
    • None
    • Fully Compatible
    • ALL
    • v6.2, v6.0
    • Sharding EMEA 2022-11-28, Sharding EMEA 2022-12-12
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None

      SERVER-61887 introduced the insertion of an oplog entry into the CreateCollectionCoordinator when the DDL operation gets committed into the config server: nevertheless, if the _commit() function gets interrupted by a stepdown event just before or during the execution of notifyChangeStreamsOnShardCollection(), it is possible to complete shardCollection() without ever emitting such oplog entry.

            Assignee:
            Paolo Polato
            Reporter:
            Paolo Polato
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: