Skip to content

Commit 7ec7660

Browse files
author
Davies Liu
committed
add logging
1 parent ff77170 commit 7ec7660

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

core/src/main/java/org/apache/spark/memory/TaskMemoryManager.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -265,6 +265,7 @@ public MemoryBlock allocatePage(long size, MemoryConsumer consumer) {
265265
try {
266266
page = memoryManager.tungstenMemoryAllocator().allocate(acquired);
267267
} catch (OutOfMemoryError e) {
268+
logger.warn("Failed to allocate a page ({} bytes), try again.", acquired);
268269
// there is no enough memory actually, it means the actual free memory is smaller than
269270
// MemoryManager thought, we should keep the acquired memory.
270271
acquiredButNotUsed += acquired;

0 commit comments

Comments
 (0)