Description
The method SparkTask#isOOMError parses a stack-trace to check if it is due to an OOM error. A few improvements could be made:
- Differentiate between driver OOM and task OOM
- The string Container killed by YARN for exceeding memory limits is printed if a container exceeds its memory limits, but Spark tasks can OOM for other reasons, such as GC overhead limit exceeded