HADOOP-11958. MetricsSystemImpl fails to show backtrace when an error occurs (Jason Lowe via jeagles)

(cherry picked from commit 2236b577a3)

Conflicts:
	hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/metrics2/impl/MetricsSystemImpl.java
This commit is contained in:
Jonathan Eagles 2015-06-24 14:51:04 -05:00
parent 1619d8d62a
commit bb6e28592e
2 changed files with 4 additions and 3 deletions

View File

@ -161,6 +161,8 @@ Release 2.8.0 - UNRELEASED
HADOOP-7139. Allow appending to existing SequenceFiles
(kanaka kumar avvaru via vinayakumarb)
HADOOP-11958. MetricsSystemImpl fails to show backtrace when an error
occurs (Jason Lowe via jeagles)
OPTIMIZATIONS
HADOOP-11785. Reduce the number of listStatus operation in distcp

View File

@ -368,9 +368,8 @@ public class MetricsSystemImpl extends MetricsSystem implements MetricsSource {
public void run() {
try {
onTimerEvent();
}
catch (Exception e) {
LOG.warn(e);
} catch (Exception e) {
LOG.warn("Error invoking metrics timer", e);
}
}
}, millis, millis);