MCPcopy Create free account
hub / github.com/apache/datafusion / insufficient_capacity_err

Function insufficient_capacity_err

datafusion/execution/src/memory_pool/pool.rs:305–319  ·  view source on GitHub ↗
(
    reservation: &MemoryReservation,
    additional: usize,
    available: usize,
    pool: &impl MemoryPool,
)

Source from the content-addressed store, hash-verified

303/// nor the total across multiple reservations with the same [`MemoryConsumer`].
304#[inline(always)]
305fn insufficient_capacity_err(
306 reservation: &MemoryReservation,
307 additional: usize,
308 available: usize,
309 pool: &impl MemoryPool,
310) -> DataFusionError {
311 resources_datafusion_err!(
312 "Failed to allocate additional {} for {} with {} already allocated for this reservation - {} remain available for the total memory pool: {}",
313 human_readable_size(additional),
314 reservation.registration.consumer.name,
315 human_readable_size(reservation.size()),
316 human_readable_size(available),
317 pool
318 )
319}
320
321#[derive(Debug)]
322struct TrackedConsumer {

Callers 1

try_growMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…