You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@mahout.apache.org by "Deneche A. Hakim (JIRA)" <ji...@apache.org> on 2009/06/08 16:34:07 UTC

[jira] Updated: (MAHOUT-113) CDInfosToolTest.testGatherInfos failure in Mahout examples

     [ https://issues.apache.org/jira/browse/MAHOUT-113?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Deneche A. Hakim updated MAHOUT-113:
------------------------------------

    Attachment: mahout113-patch.diff

I think I found the problem, it was caused by a bad random generation of the data. This patch should resolve the issue, I included a loop to repeat the test many times, and repeated it 100 times without any problem.

> CDInfosToolTest.testGatherInfos failure in Mahout examples
> ----------------------------------------------------------
>
>                 Key: MAHOUT-113
>                 URL: https://issues.apache.org/jira/browse/MAHOUT-113
>             Project: Mahout
>          Issue Type: Bug
>         Environment: Maven version: 2.0.9
> Java version: 1.6.0_07
> OS name: "linux" version: "2.6.26.6-79.fc9.i686" arch: "i386" Family: "unix"
>            Reporter: Jukka Zitting
>            Priority: Minor
>         Attachments: mahout113-patch.diff, org.apache.mahout.ga.watchmaker.cd.tool.CDInfosToolTest-output.txt
>
>
> I'm getting the following test failure when running "mvn clean install" on a fresh checkout of Mahout trunk:
> {noformat}
> -------------------------------------------------------------------------------
> Test set: org.apache.mahout.ga.watchmaker.cd.tool.CDInfosToolTest
> -------------------------------------------------------------------------------
> Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 1.828 sec <<< FAILURE!
> testGatherInfos(org.apache.mahout.ga.watchmaker.cd.tool.CDInfosToolTest)  Time elapsed: 1.798 sec  <<< FAILURE!
> junit.framework.AssertionFailedError: expected:<48> but was:<46>
>         at junit.framework.Assert.fail(Assert.java:47)
>         at junit.framework.Assert.failNotEquals(Assert.java:280)
>         at junit.framework.Assert.assertEquals(Assert.java:64)
>         at junit.framework.Assert.assertEquals(Assert.java:198)
>         at junit.framework.Assert.assertEquals(Assert.java:204)
>         at org.apache.mahout.ga.watchmaker.cd.tool.CDInfosToolTest.testGatherInfos(CDInfosToolTest.java:207)
> {noformat}
> I'll attach the test output file.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.