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:55:07 UTC
[jira] [Created] (OOZIE-990) TestLogStreamer.testStreamLog fails in
very rare cases
Robert Kanter created OOZIE-990:
-----------------------------------
Summary: 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
[jira] [Commented] (OOZIE-990) TestLogStreamer.testStreamLog fails
in very rare cases
Posted by "Robert Kanter (JIRA)" <ji...@apache.org>.
[ 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
[jira] [Commented] (OOZIE-990) TestLogStreamer.testStreamLog fails
in very rare cases
Posted by "Hadoop QA (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/OOZIE-990?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13451214#comment-13451214 ]
Hadoop QA commented on OOZIE-990:
---------------------------------
Testing JIRA OOZIE-990
Cleaning local svn workspace
{code}
----------------------------
+1 PATCH_APPLIES
CLEAN cleaned target directories
+1 RAW_PATCH_ANALYSIS
+1 the patch does not introduce any @author tags
+1 the patch does not introduce any tabs
+1 the patch does not introduce any trailing spaces
+1 the patch does not introduce any line longer than 132
+1 the patch does adds/modifies 1 testcase(s)
+1 RAT
+1 the patch does not seem to introduce new RAT warnings
+1 JAVADOC
+1 the patch does not seem to introduce new Javadoc warnings
+1 COMPILE
+1 HEAD compiles
+1 patch compiles
+1 the patch does not seem to introduce new javac warnings
+1 BACKWARDS_COMPATIBILITY
+1 the patch does not change any JPA Entity/Colum/Basic/Lob/Transient annotations
+1 the patch does not modify JPA files
+1 TESTS
Tests run: 908
Tests failures: 0
Tests errors: 0
+1 DISTRO
+1 distro tarball builds with the patch
----------------------------
{code}
The full output of the test-patch run is available at
https://builds.apache.org/job/oozie-trunk-precommit-build/90/
> 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
> Attachments: OOZIE-990.patch
>
>
> 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
[jira] [Updated] (OOZIE-990) TestLogStreamer.testStreamLog fails in
very rare cases
Posted by "Robert Kanter (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/OOZIE-990?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Robert Kanter updated OOZIE-990:
--------------------------------
Attachment: OOZIE-990.patch
> 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
> Attachments: OOZIE-990.patch
>
>
> 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
[jira] [Commented] (OOZIE-990) TestLogStreamer.testStreamLog fails
in very rare cases
Posted by "Alejandro Abdelnur (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/OOZIE-990?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13452238#comment-13452238 ]
Alejandro Abdelnur commented on OOZIE-990:
------------------------------------------
+1
> 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
> Attachments: OOZIE-990.patch
>
>
> 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