ExportXMLWordPrintableJSON

    • Type: Task
    • Resolution: Fixed
    • Priority: Major - P3
    • 9.1.0-rc0, 9.1.0-rc1026
    • Affects Version/s: None
    • Component/s: None
    • None
    • Storage Execution
    • Fully Compatible
    • Storage Execution 2026-11-23
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      When a primary-driven index build spills its sorter, every batch is written back to back while the collection scan is suspended, which engages flow control against concurrent user writes. Incremental spilling, one batch per call paced to the collection scan, avoids the spike, but Spiller::spill() has no way to express it.

      This adds beginSpill() and spillIncremental() to the Spiller interface (the writer is created by beginSpill() and held open across spillIncremental() calls, so one logical spill produces exactly one container range), a supportsIncrementalSpilling() capability query, and the resume-position capture in ContainerSpillYielder: onSpillBegin records _lastRecordIdInserted when the sorter sorts a buffer, and onSpill persists it. No spiller reports supportsIncrementalSpilling() yet, so behavior is unchanged until SERVER-139235 wires the parameter.

            Assignee:
            Shin Yee Tan
            Reporter:
            Shin Yee Tan
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: