XiaoHongbo-Hope opened a new pull request, #1508:
URL: https://github.com/apache/paimon-rust/pull/1508

   ## Summary
   
   Bound BLOB payload batches waiting in the Core parallel split executor with 
a shared, per-read byte reservation. `read.blob.output.max-buffered-bytes` 
defaults to 256 MiB and can be set as a table option.
   
   - Reserve capacity **before** polling a split group. For managed `.blob` 
files, use the sum of their manifest file sizes in the largest split in that 
group. One group reads its splits sequentially. A group larger than the budget 
reserves the whole budget and runs alone.
   - If a BLOB may come from a descriptor in a non-BLOB file, or from a REST 
BLOB view, reserve the whole budget and read one group at a time. Unknown 
lengths never get an optimistic estimate.
   - Keep each reservation while its batch waits for output, including while 
the caller pauses after a yield. Release it when the caller resumes, closes the 
stream, or an error cancels the read. Prioritize the current group for ordered 
output so later ready batches cannot starve it.
   
   ## Why
   
   In [#1504 
review](https://github.com/apache/paimon-rust/pull/1504#discussion_r4663596789),
 32 parallel BLOB splits with 16 MiB batches left many decoded batches waiting 
after the consumer paused. The existing Parquet row-group budget and BLOB 
range-I/O limiter do not cover those output batches. This Core change makes 
parallel BLOB split scheduling account for them before decoding. It does not 
change the current default split parallelism; #1504 can consider a higher BLOB 
default after this budget and the workload measurements are reviewed.
   
   ## Validation
   
   - `cargo check -p paimon --lib --locked`
   - `cargo check -p paimon --tests --locked`
   - `cargo clippy -p paimon --lib --test parallel_table_read_test --locked -- 
-D warnings`
   - `cargo test -p paimon --lib table::read_execution::tests --locked`: 10 
passed
   - `cargo test -p paimon --lib 
blob_output_reservation_uses_managed_files_or_serial_fallback --locked`: 1 
passed
   - `test_blob_output_buffer_budget_option`: passed
   - `cargo test -p paimon --test parallel_table_read_test 
finite_blob_reads_do_not_open_payloads_in_later_splits --locked`: passed
   - `cargo fmt --all --check`; `git diff --check`
   
   ## Scope
   
   The reservation covers BLOB payload batches waiting in this split executor. 
It does not count batches the caller retains after advancing, decoder working 
memory, or non-BLOB arrays. It bounds admitted work, not total process RSS. 
Unknown/external payload sizes take the serial fallback. The exact Q3 workload 
has not yet been benchmarked with this patch.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to