[ 
https://issues.apache.org/jira/browse/KYLIN-5520?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Shao Feng Shi updated KYLIN-5520:
---------------------------------
    Description: 
I got failure when run dev-support/unit_testing.sh:

 
{code:java}
[ERROR] org.apache.kylin.streaming.util.JobKillerTest.testGrepProcess  Time 
elapsed: 0.242 s  <<< FAILURE!
java.lang.AssertionError
        at 
org.apache.kylin.streaming.util.JobKillerTest.testGrepProcess(JobKillerTest.java:225)
 {code}
Checked the JobKillerTest.testGrepProcess test case, not knowing why it checked 
the logger's content is empty or not, and there is no reason indicate why it 
fail:
{code:java}
try {
    int resultCode = JobKiller.grepProcess(exec, strLogger, jobId);
    Assert.assertEquals(0, resultCode);
    Assert.assertTrue(strLogger.getContents().isEmpty());
} catch (Exception e) {
} {code}
 

> Unstable test case JobKillerTest.testGrepProcess 
> -------------------------------------------------
>
>                 Key: KYLIN-5520
>                 URL: https://issues.apache.org/jira/browse/KYLIN-5520
>             Project: Kylin
>          Issue Type: Improvement
>          Components: Tools, Build and Test
>    Affects Versions: 5.0-alpha
>            Reporter: Shao Feng Shi
>            Priority: Major
>
> I got failure when run dev-support/unit_testing.sh:
>  
> {code:java}
> [ERROR] org.apache.kylin.streaming.util.JobKillerTest.testGrepProcess  Time 
> elapsed: 0.242 s  <<< FAILURE!
> java.lang.AssertionError
>         at 
> org.apache.kylin.streaming.util.JobKillerTest.testGrepProcess(JobKillerTest.java:225)
>  {code}
> Checked the JobKillerTest.testGrepProcess test case, not knowing why it 
> checked the logger's content is empty or not, and there is no reason indicate 
> why it fail:
> {code:java}
> try {
>     int resultCode = JobKiller.grepProcess(exec, strLogger, jobId);
>     Assert.assertEquals(0, resultCode);
>     Assert.assertTrue(strLogger.getContents().isEmpty());
> } catch (Exception e) {
> } {code}
>  



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to