You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@oozie.apache.org by "Robert Kanter (JIRA)" <ji...@apache.org> on 2012/09/08 01:59:07 UTC
[jira] [Commented] (OOZIE-990) TestLogStreamer.testStreamLog fails
in very rare cases
[ https://issues.apache.org/jira/browse/OOZIE-990?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13451152#comment-13451152 ]
Robert Kanter commented on OOZIE-990:
-------------------------------------
The test uses file modification times based on the current time at the start of the test:
{code}long currTime = System.currentTimeMillis();{code}
But for the gz file (where the time is stored in the filename, it uses the "now" current time:
{code}String outFilename = "oozie.log" + formatDateForFilename(new GregorianCalendar()) + ".gz";{code}
So, there are rare cases where that gz file is filtered out later in the test when it isn't expected to have been filtered out.
> TestLogStreamer.testStreamLog fails in very rare cases
> ------------------------------------------------------
>
> Key: OOZIE-990
> URL: https://issues.apache.org/jira/browse/OOZIE-990
> Project: Oozie
> Issue Type: Bug
> Components: tests
> Reporter: Robert Kanter
> Assignee: Robert Kanter
> Priority: Minor
>
> In very rare cases, TestLogStreamer.testStreamLog can fail with the following error:
> {code}
> junit.framework.AssertionFailedError: expected:<7> but was:<5>
> at junit.framework.Assert.fail(Assert.java:50)
> at junit.framework.Assert.failNotEquals(Assert.java:287)
> at junit.framework.Assert.assertEquals(Assert.java:67)
> at junit.framework.Assert.assertEquals(Assert.java:199)
> at junit.framework.Assert.assertEquals(Assert.java:205)
> at org.apache.oozie.util.TestLogStreamer.testStreamLog(TestLogStreamer.java:144)
> ...
> {code}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira