[
https://issues.apache.org/jira/browse/OOZIE-2615?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15450752#comment-15450752
]
Robert Kanter commented on OOZIE-2615:
--------------------------------------
Two minor things:
- Instead of destroying the {{SchedulerService}}, shouldn't we only need to
destroy the {{StatusTransitService}}?
- Can we move the destroy before the init? That way we don't even initialize
the Service (just in case it has a chance to do something before it's
destroyed).
> Flaky tests TestCoordActionsKillXCommand.testActionKillCommandActionNumbers
> and testActionKillCommandDate
> ----------------------------------------------------------------------------------------------------------
>
> Key: OOZIE-2615
> URL: https://issues.apache.org/jira/browse/OOZIE-2615
> Project: Oozie
> Issue Type: Bug
> Components: tests
> Reporter: Peter Bacsko
> Assignee: Peter Bacsko
> Priority: Minor
> Attachments: OOZIE-2615-001.patch
>
>
> Two test cases are unstable because StatusTransitService might change the
> coord job status.
> {code:title=testActionKillCommandDate|borderStyle=solid}
> 08:15:16,122 [pool-3063-thread-2] TRACE CoordStatusTransitXCommand:529 -
> USER[test] GROUP[testg] TOKEN[] APP[COORD-TEST]
> JOB[0000000-160708081515125-oozie-root-C] ACTION[-] Precondition check for
> command [coord_status_transit] key [0000000-160708081515125-oozie-root-C]
> 08:15:16,122 [pool-3063-thread-2] DEBUG CoordStatusTransitXCommand:526 -
> USER[test] GROUP[testg] TOKEN[] APP[COORD-TEST]
> JOB[0000000-160708081515125-oozie-root-C] ACTION[-] Execute command
> [coord_status_transit] key [0000000-160708081515125-oozie-root-C]
> 08:15:16,122 [pool-3063-thread-2] INFO CoordStatusTransitXCommand:520 -
> USER[test] GROUP[testg] TOKEN[] APP[COORD-TEST]
> JOB[0000000-160708081515125-oozie-root-C] ACTION[-] Set coordinator job
> [0000000-160708081515125-oozie-root-C] status to 'KILLED' from 'RUNNING'
> {code}
> {code:title=testActionKillCommandActionNumbers|borderStyle=solid}
> 08:15:13,886 [pool-3059-thread-2] TRACE CoordStatusTransitXCommand:529 -
> USER[test] GROUP[testg] TOKEN[] APP[COORD-TEST]
> JOB[0000000-160708081512561-oozie-root-C] ACTION[-] Precondition check for
> command [coord_status_transit] key [0000000-160708081512561-oozie-root-C]
> 08:15:13,886 [pool-3059-thread-2] DEBUG CoordStatusTransitXCommand:526 -
> USER[test] GROUP[testg] TOKEN[] APP[COORD-TEST]
> JOB[0000000-160708081512561-oozie-root-C] ACTION[-] Execute command
> [coord_status_transit] key [0000000-160708081512561-oozie-root-C]
> 08:15:13,886 [pool-3059-thread-2] INFO CoordStatusTransitXCommand:520 -
> USER[test] GROUP[testg] TOKEN[] APP[COORD-TEST]
> JOB[0000000-160708081512561-oozie-root-C] ACTION[-] Set coordinator job
> [0000000-160708081512561-oozie-root-C] status to 'RUNNINGWITHERROR' from
> 'RUNNING'
> {code}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)