You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@slider.apache.org by st...@apache.org on 2015/04/09 14:35:49 UTC
[5/7] incubator-slider git commit: SLIDER-600: catch any exception
during loads, such as class casts
SLIDER-600: catch any exception during loads, such as class casts
Project: http://git-wip-us.apache.org/repos/asf/incubator-slider/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-slider/commit/9dfb52df
Tree: http://git-wip-us.apache.org/repos/asf/incubator-slider/tree/9dfb52df
Diff: http://git-wip-us.apache.org/repos/asf/incubator-slider/diff/9dfb52df
Branch: refs/heads/develop
Commit: 9dfb52df30f4b2954e826d89c9093b191829c3df
Parents: b2f060b
Author: Steve Loughran <st...@apache.org>
Authored: Thu Apr 9 13:34:17 2015 +0100
Committer: Steve Loughran <st...@apache.org>
Committed: Thu Apr 9 13:34:17 2015 +0100
----------------------------------------------------------------------
.../java/org/apache/slider/server/avro/RoleHistoryWriter.java | 3 +++
1 file changed, 3 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-slider/blob/9dfb52df/slider-core/src/main/java/org/apache/slider/server/avro/RoleHistoryWriter.java
----------------------------------------------------------------------
diff --git a/slider-core/src/main/java/org/apache/slider/server/avro/RoleHistoryWriter.java b/slider-core/src/main/java/org/apache/slider/server/avro/RoleHistoryWriter.java
index 64929b4..a6ab679 100644
--- a/slider-core/src/main/java/org/apache/slider/server/avro/RoleHistoryWriter.java
+++ b/slider-core/src/main/java/org/apache/slider/server/avro/RoleHistoryWriter.java
@@ -390,6 +390,9 @@ public class RoleHistoryWriter {
log.info("Failed to read {}", path, e);
} catch (AvroTypeException e) {
log.warn("Failed to parse {}", path, e);
+ } catch (Exception e) {
+ // low level event logged @ warn level
+ log.warn("Exception while reading {}", path, e);
}
}
return history;