wecharyu opened a new pull request, #13628:
URL: https://github.com/apache/gluten/pull/13628

   ## What changes are proposed in this pull request?
   Return immediately from `WholeStageResultIterator::spillFixedSize()` when 
shrinking has already reclaimed at least the requested amount. This prevents a 
zero or negative remaining target from causing unnecessary reclaim/spill.
   - Add an INFO log reporting the reclaimed amount, requested target, and 
skipped spill.
   - Add a native regression test covering requests below, equal to, and above 
the available free capacity.
   
   Fixes https://github.com/apache/gluten/issues/13627.
   
   ## How was this patch tested?
   Add a unit test:
   ```bash
   ./cpp/build/velox/tests/velox_memory_test 
--gtest_filter=MemoryManagerTest.spillOnlyWhenShrinkIsInsufficient
   ```
   
   ## Was this patch authored or co-authored using generative AI tooling?
   Generated-by: OpenAI Codex (GPT-6)
   


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