falcon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Peeyush Bishnoi (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (FALCON-1161) Test case feedFeedBasePathExists fails intermittently
Date Sun, 19 Apr 2015 14:25:58 GMT

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

Peeyush Bishnoi commented on FALCON-1161:
-----------------------------------------

Apache Falcon build #634 is broken as Assert statement did not match to the expected output
in the test case feedFeedBasePathExists. 
{code}
Tests run: 8, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 3.378 sec <<< FAILURE!
- in org.apache.falcon.retention.FeedEvictorTest
testFeedBasePathExists(org.apache.falcon.retention.FeedEvictorTest)  Time elapsed: 0.207 sec
 <<< FAILURE!
java.lang.AssertionError: expected:<0> but was:<1>
    at org.testng.Assert.fail(Assert.java:89)
    at org.testng.Assert.failNotEquals(Assert.java:489)
    at org.testng.Assert.assertEquals(Assert.java:118)
    at org.testng.Assert.assertEquals(Assert.java:365)
    at org.testng.Assert.assertEquals(Assert.java:375)
    at org.apache.falcon.retention.FeedEvictorTest.testFeedBasePathExists(FeedEvictorTest.java:449)
{code}

In the given test case, instances directories created dynamically and instances directories
may overlap with different time. Due to this some instances directories remained after defined
eviction. Thus condition in Assert statement did not match. 
{code}
Assert.assertEquals(files.length, 0);
{code}



> Test case feedFeedBasePathExists fails intermittently
> -----------------------------------------------------
>
>                 Key: FALCON-1161
>                 URL: https://issues.apache.org/jira/browse/FALCON-1161
>             Project: Falcon
>          Issue Type: Bug
>          Components: retention
>    Affects Versions: 0.6.1
>            Reporter: Peeyush Bishnoi
>            Assignee: Peeyush Bishnoi
>             Fix For: 0.6.1
>
>         Attachments: FALCON-1161.patch
>
>
> Test case testFeedBasePathExists in FeedEvictorTest class fails intermittently when number
of directories deleted do not match with expected output in following Assert statement.
> {code}
> Assert.assertEquals((beforeDelCount - afterDelCount), 11);
> {code}
> testFeedBasePathExists(org.apache.falcon.retention.FeedEvictorTest)  Time elapsed: 0.299
sec  <<< FAILURE!
> java.lang.AssertionError: expected:<11> but was:<12>
> 	at org.testng.Assert.fail(Assert.java:89)
> 	at org.testng.Assert.failNotEquals(Assert.java:489)
> 	at org.testng.Assert.assertEquals(Assert.java:118)
> 	at org.testng.Assert.assertEquals(Assert.java:260)
> 	at org.testng.Assert.assertEquals(Assert.java:270)
> 	at org.apache.falcon.retention.FeedEvictorTest.testFeedBasePathExists(FeedEvictorTest.java:452)



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message