reshardCollection events with the same key do not show up in the change stream

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Cannot Reproduce
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • None
    • Query Execution
    • ALL
    • Hide
      1. Set up a change stream watcher with showExpandedEvents: true.
      2. Create a sharded collection with some key.
      3. Call reshardCollection with that same key.
      4. Observe that nothing happens in the watcher.
      Show
      Set up a change stream watcher with showExpandedEvents: true . Create a sharded collection with some key. Call reshardCollection with that same key. Observe that nothing happens in the watcher.
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      In 7.2 (I think), we added support for reshardCollection events to the same shard key, per https://www.mongodb.com/docs/manual/tutorial/resharding-back-to-same-key/#std-label-resharding-a-collection-back-to-same-key.

      However, these events do not show up in the change stream at all, unlike all other {[reshardCollection}} events.

      This is important for mongosync. We explicitly do not support resharding during sync, and we'd like to be able to catch these events so we can abort the migration (which we already do whenever we see a {[reshardCollection}} event).

            Assignee:
            Sebastien Mendez
            Reporter:
            Dave Rolsky
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: