You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@kylin.apache.org by "Yaqian Zhang (Jira)" <ji...@apache.org> on 2022/01/06 06:50:00 UTC

[jira] [Closed] (KYLIN-5090) The error message was not printed in class JobWoker

     [ https://issues.apache.org/jira/browse/KYLIN-5090?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Yaqian Zhang closed KYLIN-5090.
-------------------------------

Resolved in release 4.0.1 (2022-01-06)

> The error message was not printed in class JobWoker
> ---------------------------------------------------
>
>                 Key: KYLIN-5090
>                 URL: https://issues.apache.org/jira/browse/KYLIN-5090
>             Project: Kylin
>          Issue Type: Improvement
>    Affects Versions: v4.0.0
>            Reporter: Yaqian Zhang
>            Assignee: Yaqian Zhang
>            Priority: Minor
>             Fix For: v4.0.1
>
>
> In the execute method in JobWorker, after the error is thrown, the error details are not printed, but called the method for handling the error. When the method for handling the error is executed, other errors are generated, resulting in the real error information being hidden.
> {code:java}
> private def execute(): Unit = {
>     pool.execute(new Runnable {
>       override def run(): Unit = {
>         try {
>           logInfo("Start running job.")
>           application.execute(args)
>           eventLoop.post(JobSucceeded())
>         } catch {
>           case exception: NoRetryException => eventLoop.post(UnknownThrowable(exception))
>           case throwable: Throwable => eventLoop.post(ResourceLack(throwable))
>         }
>       }
>     })
>   }
> {code}



--
This message was sent by Atlassian Jira
(v8.20.1#820001)