nathanb9 commented on code in PR #21425:
URL: https://github.com/apache/datafusion/pull/21425#discussion_r3102962402


##########
datafusion/execution/src/memory_pool/mod.rs:
##########
@@ -331,6 +371,12 @@ impl MemoryConsumer {
     }
 }
 
+/// Callback implemented by spillable operators that can synchronously reclaim 
existing
+/// reservations when another consumer in the same pool is under pressure.
+pub trait MemoryReclaimer: Send + Sync {
+    fn reclaim(&self, target_bytes: usize) -> Result<usize>;

Review Comment:
   Makes sense totally agree this can be tricky. Ive ddded details.



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