hcrosse opened a new pull request, #2818:
URL: https://github.com/apache/iceberg-go/pull/2818

   Closes #2817
   
   ## What
   
   - Stream bin-pack compaction scans directly through a bounded channel 
instead of putting batches back into input task order.
   - Cancel sibling workers immediately on the first worker error when the 
batch channel is full, while preserving that first error.
   - Keep `Scan.ReadTasks`, `Scan.ToArrowRecords`, and sort and Hilbert 
compaction strategies unchanged.
   - Update the documentation on `WithCompactionArrowBatchSize` and 
`WithCompactionScanConcurrency` to state the updated memory bound for 
unpartitioned bin-pack groups and groups on the current partition spec, and to 
note that groups on older partition specs use the fanout writer.
   
   ## Why
   
   Bin-pack compaction does not need rows in input task order. Reading through 
the ordered scan path buffered entire decoded files from sibling workers 
whenever an earlier task lagged, which caused memory to scale with the size of 
each input file instead of `WithCompactionArrowBatchSize`. Streaming batches 
without reordering bounds memory by the worker count and batch size and avoids 
head-of-line blocking.
   
   ## Verification
   
   Unit tests in `table` passed with the race detector enabled. The new tests 
cover bounded memory across files with multiple batches while the first task 
and the writer are blocked, streaming remaining files past a slow first task, 
cancellation and worker errors when the batch channel is full, and edge cases 
including stopping iteration early, row limits, fully pruned files, and empty 
task lists.
   


-- 
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]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to