aboutsummaryrefslogtreecommitdiff
path: root/spark-common/src/main/java/me/lucko/spark
diff options
context:
space:
mode:
authorLuck <git@lucko.me>2019-06-16 13:33:43 +0100
committerLuck <git@lucko.me>2019-06-16 13:33:43 +0100
commitbf6272e791abb7f30e4b3aeeeeedbf22b7807aef (patch)
treea78e7c6cb106a1c36a7e333b3dc79c760ab5b168 /spark-common/src/main/java/me/lucko/spark
parent11db3961055067fcd27b579113af4f6d32b9f6a6 (diff)
downloadspark-bf6272e791abb7f30e4b3aeeeeedbf22b7807aef.tar.gz
spark-bf6272e791abb7f30e4b3aeeeeedbf22b7807aef.tar.bz2
spark-bf6272e791abb7f30e4b3aeeeeedbf22b7807aef.zip
Better catch block for malformed heap dump summary lines
Diffstat (limited to 'spark-common/src/main/java/me/lucko/spark')
-rw-r--r--spark-common/src/main/java/me/lucko/spark/common/heapdump/HeapDumpSummary.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/spark-common/src/main/java/me/lucko/spark/common/heapdump/HeapDumpSummary.java b/spark-common/src/main/java/me/lucko/spark/common/heapdump/HeapDumpSummary.java
index c949fc8..53de4e8 100644
--- a/spark-common/src/main/java/me/lucko/spark/common/heapdump/HeapDumpSummary.java
+++ b/spark-common/src/main/java/me/lucko/spark/common/heapdump/HeapDumpSummary.java
@@ -97,7 +97,7 @@ public final class HeapDumpSummary {
TypeDescriptors.getJavaType(matcher.group(4))
);
} catch (Exception e) {
- e.printStackTrace();
+ new IllegalArgumentException("Exception parsing line: " + line, e).printStackTrace();
return null;
}
})