GitHub user andrewor14 opened a pull request:
https://github.com/apache/spark/pull/13039
[SPARK-15260] Atomically resize memory pools
## What changes were proposed in this pull request?
When we acquire execution memory, we do a lot of things between shrinking
the storage memory pool and enlarging the execution memory pool. In particular,
we call `memoryStore.evictBlocksToFreeSpace`, which may do a lot of I/O and can
throw exceptions. If an exception is thrown, the pool sizes on that executor
will be in a bad state.
This patch minimizes the things we do between the two calls to make the
resizing more atomic.
## How was this patch tested?
Jenkins.
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/andrewor14/spark safer-pool
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/spark/pull/13039.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 #13039
----
commit 632ae1442cde5278065a7017c094252c59c0ddc7
Author: Andrew Or <[email protected]>
Date: 2016-05-10T23:53:59Z
Atomically shrink and stretch memory pools
----
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]