SERVER-134598ClosedGone away

Refactor ARM to clarify retry behavior

During implementation and code review of SERVER-133148, we identified an opportunity to clean up this area of the code which has proven bug-prone in the past. The core idea is to refactor {{AsyncResultsMerger}}'s per-remote retry bookkeeping from ad-hoc flags ({{outstandingRequest}} + callback handle + retry-strategy internals) into an explicit per-remote lifecycle state machine (e.g. {{Undispatched -> Dispatched -> ResultsBuffered -> Exhausted}}), with a {{HitRetryableError}} state carrying

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.