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

Investigate and document the existing infrastructure supporting the Change Stream functionality

    • Type: Icon: Task Task
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • Labels:
      None
    • Sharding EMEA 2022-08-08, Sharding EMEA 2022-08-22

      As part of the proposed design for PM-1939 we intend to generate System Change Stream events in correspondence with Sharding DDL operations that alter the subset of Shards containing at lest one chunk of the namespace targeted by a nss.watch() command.

      Some of the desired change stream events (such as migrateChunkToNewShard and migrateLastChunkFromShard) are already being generated by the Server code to support C2C replication.

      The objectives of this ticket are:

      1. collect information on

      • where and how this events are being generated
      • where and how this events are being consumed
      • which is the logic supporting the propagation of the events

      2. confirm that the existing code can be easily leveraged/extended to other DDL operations

      3. update the "Following the execution" section of the Design document based on the outcome of the investigation

            Assignee:
            enrico.golfieri@mongodb.com Enrico Golfieri
            Reporter:
            paolo.polato@mongodb.com Paolo Polato
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: