You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@oozie.apache.org by di...@apache.org on 2022/12/08 09:50:28 UTC

[oozie] branch master updated: OOZIE-3686 Repair flaky testRetryConsoleUrlForked unit test (jmakai via dionusos)

This is an automated email from the ASF dual-hosted git repository.

dionusos pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/oozie.git


The following commit(s) were added to refs/heads/master by this push:
     new 6a7b5e0d1 OOZIE-3686 Repair flaky testRetryConsoleUrlForked unit test (jmakai via dionusos)
6a7b5e0d1 is described below

commit 6a7b5e0d1c46d57abb4c406379ac82e437ad2cfc
Author: Denes Bodo <di...@apache.org>
AuthorDate: Thu Dec 8 10:46:42 2022 +0100

    OOZIE-3686 Repair flaky testRetryConsoleUrlForked unit test (jmakai via dionusos)
---
 .../oozie/command/wf/TestWorkflowActionRetryInfoXCommand.java       | 6 ++++++
 release-log.txt                                                     | 1 +
 2 files changed, 7 insertions(+)

diff --git a/core/src/test/java/org/apache/oozie/command/wf/TestWorkflowActionRetryInfoXCommand.java b/core/src/test/java/org/apache/oozie/command/wf/TestWorkflowActionRetryInfoXCommand.java
index a12335f2d..e027ae08a 100644
--- a/core/src/test/java/org/apache/oozie/command/wf/TestWorkflowActionRetryInfoXCommand.java
+++ b/core/src/test/java/org/apache/oozie/command/wf/TestWorkflowActionRetryInfoXCommand.java
@@ -156,6 +156,12 @@ public class TestWorkflowActionRetryInfoXCommand extends XDataTestCase {
             }
         });
 
+        // Sleeping here 5 seconds which lets Oozie finish its back end DB synchronisation
+        // otherwise in some cases the below action1 or action2 end time is null.
+        // To reproduce the issue just put a sleep into the beginning of
+        // org.apache.oozie.ForTestingActionExecutor.start
+        Thread.sleep(5000);
+
         List<WorkflowActionBean> actions = jpaService.execute(actionsGetExecutor);
         WorkflowActionBean action1 = null;
         WorkflowActionBean action2 = null;
diff --git a/release-log.txt b/release-log.txt
index dadf7542d..2b63e9e52 100644
--- a/release-log.txt
+++ b/release-log.txt
@@ -1,5 +1,6 @@
 -- Oozie 5.3.0 release (trunk - unreleased)
 
+OOZIE-3686 Repair flaky testRetryConsoleUrlForked unit test (jmakai via dionusos)
 OOZIE-3684 Migrate to commons-lang3 again (jmakai via dionusos)
 OOZIE-3682 Prepare ssh-wrapper script to handle callback specific arguments with quotes (jmakai via dionusos)
 OOZIE-3683 Fix intermittent unit test failure in testLoadOnRestart (jmakai via dionusos)