Currently, the create event which occurs on a new shard when a chunk migrates to it is NOT marked as fromMigrate:true. To prevent an intermittent stream of create events as the collection migrates around the cluster, we want to mark this as fromMigrate:true.
However, when showSystemEvents is true, both the create event and any createIndexes events that are generated during chunk migration should be exposed in the stream. Note that the createIndexes events are already marked as fromMigrate:true.
- depends on
-
SERVER-61893 Add capability for showing system events with showSystemEvents flag
- Closed
-
SERVER-62591 Add change streams event for migrate last chunk off shard
- Closed
-
SERVER-63394 Add change stream event for createIndexes and dropIndexes
- Closed