Both drop database and drop collection coordinators are sending the drop participant command first to the primary shard and then to the others.
As a result, the current behavior permits to see the following change stream events (thanks max.hirschhorn for pointing that out):
- drop change event from primary shard
- insert change event from primary shard (unsharded collection implicitly recreated)
- drop change event from other shard
It would be difficult for a client to know whether the insert (2) happened during or after the drop. Inverting the order would prevent such interleaving of events.
- related to
-
SERVER-61933 Interleaved operations during sharded collection drop violate change stream guarantees
- Closed