[ 
https://issues.apache.org/jira/browse/OOZIE-2615?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15451156#comment-15451156
 ] 

Abhishek Bafna commented on OOZIE-2615:
---------------------------------------

 Just a thought, Instead of destroying the services, can we use 
{{XDataTestCase#setClassesToBeExcluded}} method for excluding the service in 
first. An example can be found in the {{TestStatusTransitService}} class. 
Thanks.

> 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)

Reply via email to