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