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/07 13:37:05 UTC

[oozie] branch master updated: OOZIE-3683 Fix intermittent unit test failure in testLoadOnRestart (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 3a932ad1c OOZIE-3683 Fix intermittent unit test failure in testLoadOnRestart (jmakai via dionusos)
3a932ad1c is described below

commit 3a932ad1cd7e294576b03c48bbd28e691ad6f58b
Author: Denes Bodo <di...@apache.org>
AuthorDate: Wed Dec 7 14:29:07 2022 +0100

    OOZIE-3683 Fix intermittent unit test failure in testLoadOnRestart (jmakai via dionusos)
---
 core/src/test/java/org/apache/oozie/sla/TestSLACalculatorMemory.java | 4 ++--
 release-log.txt                                                      | 1 +
 2 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/core/src/test/java/org/apache/oozie/sla/TestSLACalculatorMemory.java b/core/src/test/java/org/apache/oozie/sla/TestSLACalculatorMemory.java
index 3285153b6..00e255306 100644
--- a/core/src/test/java/org/apache/oozie/sla/TestSLACalculatorMemory.java
+++ b/core/src/test/java/org/apache/oozie/sla/TestSLACalculatorMemory.java
@@ -139,7 +139,7 @@ public class TestSLACalculatorMemory extends XDataTestCase {
 
         SimpleDateFormat sdf = new SimpleDateFormat("yyyy-mm-dd");
         slaRegBean1.setAppName("app-name");
-        slaRegBean1.setExpectedDuration(123);
+        slaRegBean1.setExpectedDuration(10000);
         slaRegBean1.setExpectedEnd(sdf.parse("2012-02-07"));
         slaRegBean1.setExpectedStart(sdf.parse("2011-02-07"));
         slaRegBean1.setNominalTime(sdf.parse("2012-01-06"));
@@ -216,7 +216,7 @@ public class TestSLACalculatorMemory extends XDataTestCase {
         assertEquals("job-1-W", calc.getId());
         assertEquals(AppType.WORKFLOW_JOB, calc.getAppType());
         assertEquals("app-name", calc.getAppName());
-        assertEquals(123, calc.getExpectedDuration());
+        assertEquals(10000, calc.getExpectedDuration());
         assertEquals(sdf.parse("2012-02-07"), calc.getExpectedEnd());
         assertEquals(sdf.parse("2011-02-07"), calc.getExpectedStart());
         assertEquals(sdf.parse("2012-01-06"), calc.getNominalTime());
diff --git a/release-log.txt b/release-log.txt
index a26c622ad..05a62d125 100644
--- a/release-log.txt
+++ b/release-log.txt
@@ -1,5 +1,6 @@
 -- Oozie 5.3.0 release (trunk - unreleased)
 
+OOZIE-3683 Fix intermittent unit test failure in testLoadOnRestart (jmakai via dionusos)
 OOZIE-3679 Correct maximum wait time between database retry attempts property (jmakai via dionusos)
 OOZIE-3606 Extend file system EL functions to use custom file system properties (jmakai via dionusos)
 OOZIE-3677 Oozie should accept a keyStoreType and trustStoreType property in oozie-site.xml (jmakai via dionusos)