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

Do not report drop events as part of shardCollection

    XMLWordPrintableJSON

Details

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

    Description

      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.

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: