You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@flume.apache.org by "Mike Percy (JIRA)" <ji...@apache.org> on 2013/05/23 12:39:21 UTC

[jira] [Commented] (FLUME-2037) testDataFilesRequiredByBackupNotDeleted is flakey

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

Mike Percy commented on FLUME-2037:
-----------------------------------

Hey Hari I am still getting failures on this test.

Applied the patch, then

{noformat}
$ cd flume-ng-channels/flume-file-channel
$ for i in $(seq 1 100); do echo $i; mvn test -Dtest="TestFileChannelRestart#testDataFilesRequiredByBackupNotDeleted" || break; done
{noformat}

I just found out that surefire supports that syntax... pretty sweet... anyway I am getting the following error message:

{noformat}
$ head -10 ./target/surefire-reports/org.apache.flume.channel.file.TestFileChannelRestart.txt
-------------------------------------------------------------------------------
Test set: org.apache.flume.channel.file.TestFileChannelRestart
-------------------------------------------------------------------------------
Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 1.089 sec <<< FAILURE!
testDataFilesRequiredByBackupNotDeleted(org.apache.flume.channel.file.TestFileChannelRestart)  Time elapsed: 0.946 sec  <<< FAILURE!
java.lang.AssertionError
	at org.junit.Assert.fail(Assert.java:92)
	at org.junit.Assert.assertTrue(Assert.java:43)
	at org.junit.Assert.assertTrue(Assert.java:54)
	at org.apache.flume.channel.file.TestFileChannelRestart.testDataFilesRequiredByBackupNotDeleted(TestFileChannelRestart.java:795)
{noformat}

I didn't investigate much, but I hacked up the patch a little and got this error message out of it after it failed on the 29th run:

{noformat}
testDataFilesRequiredByBackupNotDeleted(org.apache.flume.channel.file.TestFileChannelRestart)  Time elapsed: 1.006 sec  <<< FAILURE!
java.lang.AssertionError: origFiles.size() = 32, olderThanCheckpoint = 23
	at org.junit.Assert.fail(Assert.java:93)
	at org.junit.Assert.assertTrue(Assert.java:43)
	at org.apache.flume.channel.file.TestFileChannelRestart.testDataFilesRequiredByBackupNotDeleted(TestFileChannelRestart.java:795)
{noformat}

                
> testDataFilesRequiredByBackupNotDeleted is flakey
> -------------------------------------------------
>
>                 Key: FLUME-2037
>                 URL: https://issues.apache.org/jira/browse/FLUME-2037
>             Project: Flume
>          Issue Type: Bug
>            Reporter: Hari Shreedharan
>            Assignee: Hari Shreedharan
>         Attachments: FLUME-2037.patch
>
>


--
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