wForget opened a new issue, #1733: URL: https://github.com/apache/datafusion-comet/issues/1733
### Describe the bug The memory acquired by `CometMemoryPool.grow` may be less than the actual request, so `CometMemoryPool.shrink` may release more memory than acquired memory. https://github.com/apache/datafusion-comet/blob/25e39ab8ba2b882057c5a5c44be79d88015890fb/native/core/src/execution/memory_pools/unified_pool.rs#L93-L95 For the unified memory manager, we should throw an error when we cannot acquire requested offheap memory. ### Steps to reproduce _No response_ ### Expected behavior _No response_ ### Additional context _No response_ -- 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: github-unsubscr...@datafusion.apache.org.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: github-unsubscr...@datafusion.apache.org For additional commands, e-mail: github-h...@datafusion.apache.org