diff --git a/gemfire-core/src/main/java/com/gemstone/gemfire/SystemFailure.java b/gemfire-core/src/main/java/com/gemstone/gemfire/SystemFailure.java index 634739e3f..f7851bb29 100644 --- a/gemfire-core/src/main/java/com/gemstone/gemfire/SystemFailure.java +++ b/gemfire-core/src/main/java/com/gemstone/gemfire/SystemFailure.java @@ -317,7 +317,8 @@ public static void setSkipOOMEForThread(boolean skip) { public static boolean isJVMFailureError(Error err) { // all VirtualMachineErrors are not fatal to the JVM, in particular // StackOverflowError is not - if (err instanceof OutOfMemoryError) { + if (err instanceof OutOfMemoryError && + !err.getClass().getName().contains("SparkOutOfMemoryError")) { if (SKIP_OOME.get() == Boolean.TRUE) return false; // ignore OOMEs thrown by Spark String message = err.getMessage();