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

Adapt the aggregation pipeline supporting nss.watch() to the op entry rules implemented by shardCollection

    • Type: Icon: Task Task
    • Resolution: Gone away
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • None
    • QE 2023-03-06, QE 2023-03-20, QE 2023-04-03

      SERVER-74200 is introducing a 2-phase notification protocol to describe the commit of a shardCollection request.

      The protocol is planning to expand the existing schema for the shardCollection op entry, which is a user-visible event.

      In order to maintain the existing contract between mongos and the clients of a nss/cluster.watch() command, the pipeline that feeds change stream events should be modified so that:

      • only shardCollection events with phase: "commitSuccessful" | MISSING may reach the user
      • the original schema of the op entry is applied (that is, the fields introduced by SERVER-74200 get removed).

            Assignee:
            mindaugas.malinauskas@mongodb.com Mindaugas Malinauskas
            Reporter:
            paolo.polato@mongodb.com Paolo Polato
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: