Skip to content
Snippets Groups Projects
Commit 52d4fe05 authored by jerryshao's avatar jerryshao Committed by Sean Owen
Browse files

[MINOR][CORE] Fix display wrong free memory size in the log

## What changes were proposed in this pull request?

Free memory size displayed in the log is wrong (used memory), fix to make it correct.

## How was this patch tested?

N/A

Author: jerryshao <sshao@hortonworks.com>

Closes #13804 from jerryshao/memory-log-fix.
parent b4520263
No related branches found
No related tags found
No related merge requests found
......@@ -377,7 +377,8 @@ private[spark] class MemoryStore(
entries.put(blockId, entry)
}
logInfo("Block %s stored as bytes in memory (estimated size %s, free %s)".format(
blockId, Utils.bytesToString(entry.size), Utils.bytesToString(blocksMemoryUsed)))
blockId, Utils.bytesToString(entry.size),
Utils.bytesToString(maxMemory - blocksMemoryUsed)))
Right(entry.size)
} else {
// We ran out of space while unrolling the values for this block
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment