Implement Ignore-Removed-Shards operation mode support in CollectionChangeStreamShardTargeterImpl module

XMLWordPrintableJSON

    • Query Execution
    • Fully Compatible
    • QE 2025-08-18, QE 2025-09-01, QE 2025-09-15, QE 2025-09-29, QE 2025-10-13, QE 2025-10-27, QE 2026-01-19, QE 2025-12-08, QE 2025-11-24, QE 2025-11-10
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      Suggested smoke test scenario:

      1. Open a change stream in Strict mode to get the resume token resumeToken.
      2. Create and shard a collection Coll; allocate collection to shard set {A, B}.
      3. Insert documents into the collection Coll so the documents are distributed in shards A and B.
      4. Reshard collection Coll and allocate to shards {B, C}.
      5. Insert some documents into collection Coll.
      6. Remove and decommision shard A from the system.
      7. Open a change stream on collection Coll in Ignore-Removed-Shards mode from resume token resumeToken and read all events. Verify that all events were returned except the ones recorded on shard A.

      Reuse as much of the test script from jstests/sharding/query/change_streams/change_stream_v2_smoke.js.

            Assignee:
            Jan Steemann
            Reporter:
            Mindaugas Malinauskas (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: