Skip to content

Bound JSONLINE continuation and respect batch budget - #32366

Merged
mergify[bot] merged 5 commits into
matrixorigin:mainfrom
iamlinjunhong:fix/jsonline-continuation-32055
Nov 8, 2026
Merged

mergify[bot] merged 5 commits into
matrixorigin:mainfrom
iamlinjunhong:fix/jsonline-continuation-32055

Conversation

@iamlinjunhong

Copy link
Copy Markdown
Contributor

What type of PR is this?

  • API-change
  • BUG
  • Improvement
  • Documentation
  • Feature
  • Test and CI
  • Code Refactoring

Which issue(s) this PR fixes:

What this PR does / why we need it:

JSONLINE records spanning physical lines could accumulate beyond the effective record limit, ignore the per-batch read budget, and repeatedly copy and parse growing prefixes. Bound accumulated payload before allocation, scan continuation fragments incrementally, and use capped geometric buffer growth. Continuations now yield at the batch budget and resume across calls while preserving EOF, error, and Kafka message behavior.

Validation:

  • At the reviewed revision, the external package tests and targeted boundary QA passed; vet and lint passed for the affected packages.
  • A build and two rounds on one ready instance exercised cross-batch LOAD success, incomplete EOF, cumulative limit errors, rollback, and recovery. Earlier SQL regression comparisons passed twice; the owning load_data group reported 1,890 successes, 5 ignored, and 0 failures.
  • A local pending-buffer benchmark at 4–16 KiB limits showed copied bytes growing 4× for a 4× limit increase; at a fixed 16 KiB limit, copied bytes stayed constant as fragments increased from 16 to 1,024. This isolates the buffer path and does not establish overall SQL throughput, default-limit memory use, GC/RSS peaks, or concurrent performance.

Full remote CI has not yet run. Existing blocking I/O behavior and complete parse-tree memory are outside this change's bounds.

@qodo-code-review

Copy link
Copy Markdown

Qodo reviews are paused for this user.

Troubleshooting steps vary by plan Learn more →

On a Teams plan?
Reviews resume once this user has a paid seat and their Git account is linked in Qodo.
Link Git account →

Using GitHub Enterprise Server, GitLab Self-Managed, or Bitbucket Data Center?
These require an Enterprise plan - Contact us
Contact us →

@XuPeng-SH

XuPeng-SH commented Nov 8, 2026 •

Copy link
Copy Markdown
Contributor

mo-bot review · mo-bot-local · done

Commit: c502f42b6d99d3cc0336009fac46dedd413f7bd9

Review completed. Read the assessment.

@XuPeng-SH XuPeng-SH left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

mo-bot review · mo-bot-local · review

Commit: c502f42b6d99d3cc0336009fac46dedd413f7bd9

Assessment: approve

The continuation buffer reuses CSVParser limits and bytejson validation, bounds growth, and preserves batch resumption and cleanup. No actionable findings remain.

Model: gpt-6.1-sol / max

Session: 01a1a004-9884-72c0-ad39-f096c4209c4a · slot 1 · generation 0

Validation:

  • Isolated external and csvparser package tests passed: 727 top-level tests, including all 10 new tests; no skips.

  • Preflight, native build, frozen-source/delta and formatting checks passed. Receipts and retained logs reconcile in validation-index.json.

  • Reused successful frozen-head build, UT, SCA and compose BVT CI, plus author-reported repeated SQL results. Complete discussion assessment saved.

Limitations:

  • Author SQL results lack attached raw logs; SQL/BVT was not independently rerun locally.

  • The continuation payload bound does not establish total parser heap/RSS bounds or overall SQL throughput.

@mergify mergify Bot added the queued label Nov 8, 2026
@mergify

mergify Bot commented Nov 8, 2026 •

Copy link
Copy Markdown
Contributor

✅ Merged into main as 374ad58 at 18:01 UTC

1 h 17 min in the queue, 1 h 16 min of it CI.

So far

  • ✅ Entered the queue Sun 8 Nov, 16:44 · rule main · triggered by rule Automatic queue on approval for main
  • ✅ Passed · in place
  • ✅ Merged 18:01 · 374ad58 · squash
3 merge conditions met
  • #review-threads-unresolved = 0 · required by GitHub branch protection
  • github-review-approved · required by GitHub branch protection
  • any of · required by GitHub branch protection:
    • check-success = CI Required
    • check-neutral = CI Required
    • check-skipped = CI Required

Times in UTC · dashboard · how the merge queue works

This branch was previously deployed

1 inactive deployment
ci — c02d44e4 Deployed Nov 8, 2026 by mergify[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

kind/bug Something isn't working size/L Denotes a PR that changes [500,999] lines

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants