Skip to content

Commit 0e22535

Browse files
committed
Reinstate DX-90092
1 parent b9d2778 commit 0e22535

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

memory/memory-core/src/main/java/org/apache/arrow/memory/BaseAllocator.java

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -432,6 +432,20 @@ public AllocationReservation newReservation() {
432432

433433
@Override
434434
public synchronized void close() {
435+
try {
436+
closeImpl();
437+
} catch (Exception e) {
438+
logger.warn(
439+
"BufferAllocator.close() of {} got an exception {} - Details {}",
440+
this,
441+
e,
442+
this.toVerboseString());
443+
444+
throw e;
445+
}
446+
}
447+
448+
private synchronized void closeImpl() {
435449
/*
436450
* Some owners may close more than once because of complex cleanup and shutdown
437451
* procedures.

0 commit comments

Comments
 (0)