falcon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Balu Vellanki (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (FALCON-1842) Falcon build failed in Jenkins at org.apache.falcon.oozie.feed.OozieFeedWorkflowBuilderTest
Date Mon, 29 Feb 2016 22:25:18 GMT

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

Balu Vellanki commented on FALCON-1842:
---------------------------------------

The issue is happening because Falcon tests set start to Calendar.getInstance() and used method
Calendar.roll(Calendar.DATE, 1) to set end-date for coordinator. On Feb 29th 2016, start is
"Feb 29th 2016" and  end date became "Feb 1st 2016" because of roll.  Since coordinator start
cannot be after end date, it is also set to Feb 1st 2016. This caused tests to fail. 

Solution is to use Calendar.add(...)

> Falcon build failed in Jenkins at org.apache.falcon.oozie.feed.OozieFeedWorkflowBuilderTest
> -------------------------------------------------------------------------------------------
>
>                 Key: FALCON-1842
>                 URL: https://issues.apache.org/jira/browse/FALCON-1842
>             Project: Falcon
>          Issue Type: Bug
>          Components: falcon-unit
>    Affects Versions: 0.9
>            Reporter: Balu Vellanki
>            Assignee: Balu Vellanki
>             Fix For: 0.10
>
>
> Build fails with following error.
> {code}
> Running org.apache.falcon.oozie.feed.OozieFeedWorkflowBuilderTest
> Tests run: 18, Failures: 6, Errors: 0, Skipped: 0, Time elapsed: 9.447 sec <<<
FAILURE! - in org.apache.falcon.oozie.feed.OozieFeedWorkflowBuilderTest
> testRetentionCoords(org.apache.falcon.oozie.feed.OozieFeedWorkflowBuilderTest)  Time
elapsed: 0.171 sec  <<< FAILURE!
> java.lang.AssertionError: expected:<2016-02-29T17:20Z> but was:<2016-02-01T17:24Z>
> 	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:171)
> 	at org.testng.Assert.assertEquals(Assert.java:181)
> 	at org.apache.falcon.oozie.feed.OozieFeedWorkflowBuilderTest.testRetentionCoords(OozieFeedWorkflowBuilderTest.java:729)
> {code}



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

Mime
View raw message