Repository: zeppelin Updated Branches: refs/heads/master 79d139a49 -> 4a369f100
[ZEPPELIN-2860] Invalid last job execution time ### What is this PR for? Fixed invalid last job execution time ### What type of PR is it? [Bug Fix] ### What is the Jira issue? * [ZEPPELIN-2860](https://issues.apache.org/jira/browse/ZEPPELIN-2860) ### How should this be tested? Run Notebook and check job page execution time ### Screenshots (if appropriate)  ### Questions: * Does the licenses files need update? NO * Is there breaking changes for older versions? NO * Does this needs documentation? NO Author: byung-u <iam.byung...@gmail.com> Closes #2543 from byung-u/feature/fix-last-job-execution-time and squashes the following commits: 5d970a91 [byung-u] Fix last job execution time 278eaaa2 [byung-u] Revert "feature: fix last job execution time" 180b951a [byung-u] feature: fix last job execution time Project: http://git-wip-us.apache.org/repos/asf/zeppelin/repo Commit: http://git-wip-us.apache.org/repos/asf/zeppelin/commit/4a369f10 Tree: http://git-wip-us.apache.org/repos/asf/zeppelin/tree/4a369f10 Diff: http://git-wip-us.apache.org/repos/asf/zeppelin/diff/4a369f10 Branch: refs/heads/master Commit: 4a369f10082d6d81af92d94048353afbcfc1819f Parents: 79d139a Author: byung-u <iam.byung...@gmail.com> Authored: Thu Aug 17 17:09:01 2017 +0900 Committer: 1ambda <1am...@gmail.com> Committed: Thu Aug 24 18:39:10 2017 +0900 ---------------------------------------------------------------------- .../src/main/java/org/apache/zeppelin/notebook/Notebook.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/zeppelin/blob/4a369f10/zeppelin-zengine/src/main/java/org/apache/zeppelin/notebook/Notebook.java ---------------------------------------------------------------------- diff --git a/zeppelin-zengine/src/main/java/org/apache/zeppelin/notebook/Notebook.java b/zeppelin-zengine/src/main/java/org/apache/zeppelin/notebook/Notebook.java index 07febf1..a0c1dff 100644 --- a/zeppelin-zengine/src/main/java/org/apache/zeppelin/notebook/Notebook.java +++ b/zeppelin-zengine/src/main/java/org/apache/zeppelin/notebook/Notebook.java @@ -829,7 +829,7 @@ public class Notebook implements NoteEventListener { // get data for the job manager. Map<String, Object> paragraphItem = getParagraphForJobManagerItem(paragraph); - lastRunningUnixTime = getUnixTimeLastRunParagraph(paragraph); + lastRunningUnixTime = Math.max(getUnixTimeLastRunParagraph(paragraph), lastRunningUnixTime); // is update note for last server update time. if (lastRunningUnixTime > lastUpdateServerUnixTime) {