SERVER-139272In Progress

Sort the filling buffer and begin its spill when it exceeds half the budget

When the filling buffer's usage exceeds half of {{maxMemoryUsageBytes}}, {{NoLimitSorter}} sorts it and calls {{Spiller::beginSpill()}} before swapping buffers, so the sorted buffer's keys are written while the other buffer receives keys; {{beginSpill}} fires {{SpillCallbacks::onSpillBegin}}. The Sorter base's single pool member becomes an array so the second buffer's pool can be engaged at the first incremental spill, and {{supportsIncrementalSpilling()}} is constant per spiller type, so file-b

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.