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

Billy Liu updated KYLIN-2753:
-----------------------------
    Comment: was deleted

(was: Thanks for the updates. But the patch merge check failed:
git apply --check YLIN-2753-Job-duration-may-become-negative-after-th.patch

warning: 
core-job/src/main/java/org/apache/kylin/job/execution/DefaultChainedExecutable.java
 has type 100755, expected 100644
error: patch failed: 
core-job/src/main/java/org/apache/kylin/job/execution/DefaultChainedExecutable.java:69
error: 
core-job/src/main/java/org/apache/kylin/job/execution/DefaultChainedExecutable.java:
 patch does not apply
warning: 
core-job/src/main/java/org/apache/kylin/job/execution/ExecutableManager.java 
has type 100755, expected 100644
error: patch failed: 
core-job/src/main/java/org/apache/kylin/job/execution/ExecutableManager.java:338
error: 
core-job/src/main/java/org/apache/kylin/job/execution/ExecutableManager.java: 
patch does not apply)

> Job duration may become negative after the job resumed from error or paused 
> status
> ----------------------------------------------------------------------------------
>
>                 Key: KYLIN-2753
>                 URL: https://issues.apache.org/jira/browse/KYLIN-2753
>             Project: Kylin
>          Issue Type: Bug
>    Affects Versions: v2.1.0
>            Reporter: zhengdong
>            Assignee: zhengdong
>         Attachments: 
> 0001-KYLIN-2753-Job-duration-may-become-negative-after-th.patch, 
> KYLIN-2753-Job-duration-may-become-negative-after-th.patch, Screen Shot 
> 2017-08-02 at 13.30.51.png, Screen Shot 2017-08-02 at 14.01.13.png
>
>
> After KYLIN-2655, we calculate the 'Interrupt time' when a job resumed from 
> error/stopped status to give more accurate job duration time. However, when 
> calculate the real duration time = 'Total time' - 'Interrupt time', we could 
> get a negative value.
> The root cause is 'Interrupt time' calculated in 
> DefaultChainedExecutable.onExecuteStart method. The 'Interrupt time' value is 
> not only added with the true 'Interrupt time' when the job scheduled after 
> resumed, but also increased when subsequent sub tasks executed.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Reply via email to