[ https://issues.apache.org/jira/browse/OOZIE-3269?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16496382#comment-16496382 ]
Andras Piros commented on OOZIE-3269: ------------------------------------- Thanks for the contribution [~pbacsko]! +1 > Flaky tests in TestCoordMaterializeTriggerService class > ------------------------------------------------------- > > Key: OOZIE-3269 > URL: https://issues.apache.org/jira/browse/OOZIE-3269 > Project: Oozie > Issue Type: Sub-task > Components: coordinator, core, tests > Reporter: Peter Bacsko > Assignee: Peter Bacsko > Priority: Major > Attachments: OOZIE-3269-001.patch > > > The tests in TestCoordMaterializeTriggerService can fail with various > problems. > For example, {{testCoordMaterializeTriggerService3}} typically fails with: > {noformat} > junit.framework.AssertionFailedError: expected:<PREP> but was:<RUNNING> > at junit.framework.Assert.fail(Assert.java:57) > at junit.framework.Assert.failNotEquals(Assert.java:329) > at junit.framework.Assert.assertEquals(Assert.java:78) > at junit.framework.Assert.assertEquals(Assert.java:86) > at junit.framework.TestCase.assertEquals(TestCase.java:253) > at > org.apache.oozie.service.TestCoordMaterializeTriggerService.testCoordMaterializeTriggerService3(TestCoordMaterializeTriggerService.java:151) > {noformat} > The reason is that {{CoordMaterializeTriggerService}} is running in the > background which is what we're trying to test and it interferes with the test > execution: > {noformat} > 05:59:17,474 [CallableQueue-2] DEBUG CoordMaterializeTransitionXCommand:526 - > USER[test] GROUP[testg] TOKEN[] APP[COORD-TEST] > JOB[0000002-180529055913420-oozie-root-C] ACTION[-] Coordinator job > :0000002-180529055913420-oozie-root-C, maxActionToBeCreated :1, Mat_Throttle > :1, numWaitingActions :0 > 05:59:17,475 [CallableQueue-2] DEBUG CoordMaterializeTransitionXCommand:526 - > USER[test] GROUP[testg] TOKEN[] APP[COORD-TEST] > JOB[0000002-180529055913420-oozie-root-C] ACTION[-] Materializing action for > time=2018-05-29T12:59Z, lastactionnumber=1 timeout=0 minutes > 05:59:17,475 [CallableQueue-2] WARN DateUtils:523 - USER[test] GROUP[testg] > TOKEN[] APP[COORD-TEST] JOB[0000002-180529055913420-oozie-root-C] ACTION[-] > GMT, UTC or Region/City Timezone formats are preferred instead of > America/Los_Angeles > 05:59:17,475 [CallableQueue-2] DEBUG CoordMaterializeTransitionXCommand:526 - > USER[test] GROUP[testg] TOKEN[] APP[COORD-TEST] > JOB[0000002-180529055913420-oozie-root-C] ACTION[-] In storeToDB() coord > action id = 0000002-180529055913420-oozie-root-C@1, size of actionXml = 1129 > 05:59:17,476 [CallableQueue-2] DEBUG CoordMaterializeTransitionXCommand:526 - > USER[test] GROUP[testg] TOKEN[] APP[COORD-TEST] > JOB[0000002-180529055913420-oozie-root-C] ACTION[-] Not registering SLA for > job [0000002-180529055913420-oozie-root-C@1]. Sla-Xml null OR SLAService not > enabled > 05:59:17,476 [CallableQueue-2] INFO CoordMaterializeTransitionXCommand:520 - > USER[test] GROUP[testg] TOKEN[] APP[COORD-TEST] > JOB[0000002-180529055913420-oozie-root-C] ACTION[-] > [0000002-180529055913420-oozie-root-C]: Update status from PREP to RUNNING > 05:59:17,476 [CallableQueue-2] WARN DateUtils:523 - USER[test] GROUP[testg] > TOKEN[] APP[COORD-TEST] JOB[0000002-180529055913420-oozie-root-C] ACTION[-] > GMT, UTC or Region/City Timezone formats are preferred instead of > America/Los_Angeles > 05:59:17,476 [CallableQueue-2] INFO CoordMaterializeTransitionXCommand:520 - > USER[test] GROUP[testg] TOKEN[] APP[COORD-TEST] > JOB[0000002-180529055913420-oozie-root-C] ACTION[-] > [0000002-180529055913420-oozie-root-C]: all actions have been materialized, > set pending to true > 05:59:17,476 [CallableQueue-2] INFO CoordMaterializeTransitionXCommand:520 - > USER[test] GROUP[testg] TOKEN[] APP[COORD-TEST] > JOB[0000002-180529055913420-oozie-root-C] ACTION[-] Coord Job status updated > to = RUNNING > {noformat} -- This message was sent by Atlassian JIRA (v7.6.3#76005)