[
https://issues.apache.org/jira/browse/EAGLE-912?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15874061#comment-15874061
]
ASF GitHub Bot commented on EAGLE-912:
--------------------------------------
GitHub user wujinhu reopened a pull request:
https://github.com/apache/eagle/pull/820
[EAGLE-912] make application health check message more readable
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/wujinhu/eagle EAGLE-912
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/eagle/pull/820.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #820
----
commit fd1ced58428b77ce0f382f13996a465fea338abd
Author: wujinhu <[email protected]>
Date: 2017-02-20T04:17:57Z
optimize health check message
----
> 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)