Do not report drop events as part of shardCollection

XMLWordPrintableJSON

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

      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
              Reporter:
              Lingzhi Deng
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

                Created:
                Updated:
                Resolved: