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