jiangxb1987 commented on issue #26349: [SPARK-27558][CORE] Gracefully cleanup task when it fails with OOM exception URL: https://github.com/apache/spark/pull/26349#issuecomment-555295446 > Seems fine as a defensive check, though I wasn't clear how this gets called at cleanup time. It registers TaskCompletionListener and then calls `cleanupResources()` https://github.com/apache/spark/blob/eef5e6d348e7025f48e8f69026254e07efe80894/core/src/main/java/org/apache/spark/util/collection/unsafe/sort/UnsafeExternalSorter.java#L178 Then the stack trace is `freeMemory()` -> `updatePeakMemoryUsed()` -> `getMemoryUsage()` -> `inMemSorter.getMemoryUsage()`.
---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [email protected] With regards, Apache Git Services --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
