You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Sean Owen (JIRA)" <ji...@apache.org> on 2017/04/22 11:30:04 UTC
[jira] [Resolved] (SPARK-20386) The log info "Added %s in memory on
%s (size: %s, free: %s)" in function
"org.apache.spark.storage.BlockManagerInfo.updateBlockInfo" is not accurate
if the block exists on the slave already
[ https://issues.apache.org/jira/browse/SPARK-20386?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Sean Owen resolved SPARK-20386.
-------------------------------
Resolution: Fixed
Fix Version/s: 2.2.0
Issue resolved by pull request 17683
[https://github.com/apache/spark/pull/17683]
> The log info "Added %s in memory on %s (size: %s, free: %s)" in function "org.apache.spark.storage.BlockManagerInfo.updateBlockInfo" is not accurate if the block exists on the slave already
> ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
>
> Key: SPARK-20386
> URL: https://issues.apache.org/jira/browse/SPARK-20386
> Project: Spark
> Issue Type: Bug
> Components: Spark Core
> Affects Versions: 2.1.0
> Reporter: eaton
> Priority: Trivial
> Fix For: 2.2.0
>
>
> The log info"Added %s in memory on %s (size: %s, free: %s)" in function "org.apache.spark.storage.BlockManagerInfo.updateBlockInfo" is not accurate if the block exists on the slave already;
> the current code is:
> if (storageLevel.useMemory) {
> blockStatus = BlockStatus(storageLevel, memSize = memSize, diskSize = 0)
> _blocks.put(blockId, blockStatus)
> _remainingMem -= memSize
> logInfo("Added %s in memory on %s (size: %s, free: %s)".format(
> blockId, blockManagerId.hostPort, Utils.bytesToString(memSize),
> Utils.bytesToString(_remainingMem)))
> }
> If the block exists on the slave already, the added memory should be memSize - originalMemSize, the originalMemSize is _blocks.get(blockId).memSize
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org