Found while writing the tests for SERVER-31392, the DocumentSourceChangeStream hits a uassert when the UUID in the oplog entry mismatches the UUID in the scoped collection metadata. Returning ErrorCodes::StaleConfig results in a dynamic_cast a few layers up, and eventually an invariant. I am not sure we should hit this uassert at all (a separate discussion), but for sure it doesn't seem like we should be returning this status.
- is depended on by
-
SERVER-31392 Test changeStreams when an unsharded collection becomes sharded
- Closed
-
SERVER-31394 Create passthroughs of existing changeStream tests to run against sharded collections
- Closed
- is duplicated by
-
SERVER-31746 Invariant failure on sharded $changeStream UUID mismatch
- Closed
- is related to
-
SERVER-31707 Test changeStreams on a sharded collection where the shard doesn't know the collection is sharded
- Closed
- related to
-
SERVER-31847 Allow sharded $changeStream to continue if collection is dropped and resharded before documentKey is obtained
- Closed