SERVER-139246In Code Review

Fix the semantics for resume gap in case of shard retargetting.

* sharded cluster with 2 shards A and B * open a stream over a collection which lives on shard A only * move collection to another shard B * oplog roll over (we won’t receive control event for retargeting) * getMore → error event resume gap * we still target shard A and never retarget to shard B and never receive new events

Affected Versions
Versions known to exhibit this issue

No affected versions recorded.

Fixed Versions
Versions that include the fix

No fix available yet.

Components
Server components related to this issue

No components specified.

Labels
Tags and classification

No labels assigned.