GitHub user caneGuy opened a pull request:
https://github.com/apache/spark/pull/20667
[SPARK-23508][CORE] Use timeStampedHashMap for BlockmanagerId in case
blockManagerIdCacheâ¦
⦠cause oom
## What changes were proposed in this pull request?
blockManagerIdCache in BlockManagerId will not remove old values which may
cause oom
`val blockManagerIdCache = new ConcurrentHashMap[BlockManagerId,
BlockManagerId]()`
Since whenever we apply a new BlockManagerId, it will put into this map.
This patch will use timestampHashMap instead for `JsonProtocol`.
## How was this patch tested?
Exist tests.
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/caneGuy/spark zhoukang/fix-history
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/spark/pull/20667.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #20667
----
commit fc1b6a0169c123a825a253defb021c73aebf1c98
Author: zhoukang <zhoukang199191@...>
Date: 2018-02-24T10:13:01Z
Use timeStampedHashMap for BlockmanagerId in case blockManagerIdCache cause
oom
----
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]