wujinhu created EAGLE-912:
-----------------------------

             Summary: make application health check message more readable
                 Key: EAGLE-912
                 URL: https://issues.apache.org/jira/browse/EAGLE-912
             Project: Eagle
          Issue Type: Improvement
    Affects Versions: v0.5.0
            Reporter: wujinhu
            Assignee: wujinhu
             Fix For: v0.5.0


If an application delayed a long time, health check scheduler will send message 
like this:
An exception was caught when fetch application current process time: 
java.lang.IndexOutOfBoundsException: Index: 0, Size: 0 at 
java.util.LinkedList.checkElementIndex(LinkedList.java:555) at 
java.util.LinkedList.get(LinkedList.java:476) at 
org.apache.eagle.jpm.mr.history.MRHistoryJobApplicationHealthCheck.check(MRHistoryJobApplicationHealthCheck.java:75)
 at com.codahale.metrics.health.HealthCheck.execute(HealthCheck.java:172) at 
org.apache.eagle.app.service.impl.ApplicationHealthCheckServiceImpl.runOneIteration(ApplicationHealthCheckServiceImpl.java:180)
 at 
com.google.common.util.concurrent.AbstractScheduledService$1$1.run(AbstractScheduledService.java:172)
 at com.google.common.util.concurrent.Callables$3.run(Callables.java:93) at 
java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)

This is unreadable



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Reply via email to