GitHub user heary-cao opened a pull request:
https://github.com/apache/spark/pull/23084
[SPARK-26117][CORE][SQL]use SparkOutOfMemoryError instead of
OutOfMemoryError when catch exception
## What changes were proposed in this pull request?
the pr #20014 which introduced `SparkOutOfMemoryError` to avoid killing the
entire executor when an `OutOfMemoryError `is thrown.
so apply for memory using `MemoryConsumer. allocatePage `when catch
exception, use `SparkOutOfMemoryError `instead of `OutOfMemoryError`
## How was this patch tested?
N / A
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/heary-cao/spark SparkOutOfMemoryError
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/spark/pull/23084.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 #23084
----
commit 73459423d0c3a5070a143865bcf6557d5b73f423
Author: caoxuewen <cao.xuewen@...>
Date: 2018-11-19T12:53:34Z
use SparkOutOfMemoryError instead of OutOfMemoryError when catch exception
----
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]