Skip to content

fix(scorch): cap aggregate merge plan input bytes - #3

Merged
ajroetker merged 1 commit into
antflydb-mainfrom
fix/general-merge-task-input-cap
Jul 24, 2026
Merged

fix(scorch): cap aggregate merge plan input bytes#3
ajroetker merged 1 commit into
antflydb-mainfrom
fix/general-merge-task-input-cap

Conversation

@ajroetker

Copy link
Copy Markdown

Summary

  • add MaxMergePlanInputSize to Scorch merge planner options
  • enforce it across all output-producing tasks in a plan, including ordinary non-vector segments
  • preserve the existing vector-only MaxSegmentFileSize behavior
  • cover non-vector planning and runtime-config parsing

Why

Serialized merge tasks retain each completed output until the entire plan is introduced, so a per-task fan-in limit does not cap aggregate transient staging. This adds a plan-wide persisted-input bound that applies to Antfly full-text segments.

Validation

  • GOWORK=off go test ./index/scorch/... -count=1

@ajroetker
ajroetker merged commit 242e640 into antflydb-main Jul 24, 2026
9 of 10 checks passed
@ajroetker
ajroetker deleted the fix/general-merge-task-input-cap branch July 24, 2026 22:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant