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

Do not report drop events as part of shardCollection

    • Fully Compatible
    • v6.1, v6.0
    • Sharding EMEA 2022-10-03, Sharding EMEA 2022-10-17, Sharding EMEA 2022-10-31

      The shardCollection command may drop the collection if there's a stepDown while it is running. Currently, this results in a drop collection event in change stream even though the collection isn't dropped from the user's perspective. I think if this drop is marked as fromMigrate: true, then it will skipped by change stream. And I think this is a more correct behavior.

      With this spurious drop, it is very difficult/confusing for downstream to use change streams.

            Assignee:
            enrico.golfieri@mongodb.com Enrico Golfieri
            Reporter:
            lingzhi.deng@mongodb.com Lingzhi Deng
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved: