Allow change stream to survive movePrimary

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Fixed
    • Priority: Major - P3
    • 8.1.0-rc0, 8.0.0-rc6
    • Affects Version/s: None
    • Component/s: None
    • None
    • Catalog and Routing
    • Fully Compatible
    • v8.0
    • CAR Team 2024-05-27
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None

      At present, the movePrimary command will cause a single-collection change stream to be invalidated, because the operation ends by dropping the collection on the original shard. Instead, the stream should be able to continue reading events from the collection after it has been moved to the new shard. This will require the drop event to be marked as fromMigrate:true.

      Additionally, the UUID of the collection on the new shard will be different than on the original (see this comment and SERVER-32847). This should be changed so that the UUID remains consistent throughout.

            Assignee:
            Sarah Olson
            Reporter:
            Bernard Gorman
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved: