SERVER-138724In Code Review

Change-streams sharding FSM tests: tolerate duplicate reshardCollection events (BF-47107)

h2. Overview The change-streams sharding FSM suites occasionally fail on master (~8.5% over the last two days, 3 occurrences, tracked in BF-47107) with "Matched X of Y across N stream(s)" because a change stream can receive **two** {{reshardCollection}} events for a single reshard command. The duplicate is produced by the server: when a reshard commit's decision-persist write is interrupted, the coordinator re-sends the completion notification with a fresh retryable-write txnNumber, so the shard

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
bf-47107