hama-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Edward J. Yoon (JIRA)" <j...@apache.org>
Subject [jira] [Reopened] (HAMA-709) Fix unit test fails
Date Fri, 18 Jan 2013 05:08:12 GMT

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

Edward J. Yoon reopened HAMA-709:
---------------------------------


If I set the tasks num to 3 for SSSPTest or MindistSearchTest, each partitioners returns different
ID.

{code}
PartitioningRunner:

1: 0, 2147483647 numtasks: 3
2: 1, 2147483647 numtasks: 3
0: 2, 2147483647 numtasks: 3
1: 3, 2147483647 numtasks: 3
2: 4, 2147483647 numtasks: 3
0: 5, 2147483647 numtasks: 3
1: 6, 2147483647 numtasks: 3
2: 7, 2147483647 numtasks: 3
0: 8, 2147483647 numtasks: 3
1: 9, 2147483647 numtasks: 3
13/01/18 14:03:14 INFO bsp.BSPJobClient: Current supersteps number: 0
13/01/18 14:03:14 INFO bsp.BSPJobClient: The total number of supersteps: 0
13/01/18 14:03:14 INFO bsp.BSPJobClient: Counters: 6
13/01/18 14:03:14 INFO bsp.BSPJobClient:   org.apache.hama.bsp.JobInProgress$JobCounter
13/01/18 14:03:14 INFO bsp.BSPJobClient:     SUPERSTEPS=0
13/01/18 14:03:14 INFO bsp.BSPJobClient:     LAUNCHED_TASKS=1
13/01/18 14:03:14 INFO bsp.BSPJobClient:   org.apache.hama.bsp.BSPPeerImpl$PeerCounter
13/01/18 14:03:14 INFO bsp.BSPJobClient:     SUPERSTEP_SUM=1
13/01/18 14:03:14 INFO bsp.BSPJobClient:     IO_BYTES_READ=146
13/01/18 14:03:14 INFO bsp.BSPJobClient:     TIME_IN_SYNC_MS=0
13/01/18 14:03:14 INFO bsp.BSPJobClient:     TASK_INPUT_RECORDS=10
13/01/18 14:03:14 INFO bsp.FileInputFormat: Total input paths to process : 3
13/01/18 14:03:14 WARN bsp.BSPJobClient: No job jar file set.  User classes may not be found.
See BSPJob#setJar(String) or check Your jar file.
13/01/18 14:03:14 INFO bsp.BSPJobClient: Running job: job_localrunner_0001
13/01/18 14:03:14 INFO bsp.LocalBSPRunner: Setting up a new barrier for 3 tasks!

GraphJobRunner.loadVertices():

local:1: 5, 2147483647 numtasks: 3
local:0: 7, 2147483647 numtasks: 3
local:1: 8, 2147483647 numtasks: 3
local:2: 6, 2147483647 numtasks: 3
local:1: 2, 2147483647 numtasks: 3
local:0: 1, 2147483647 numtasks: 3
local:0: 4, 2147483647 numtasks: 3
local:2: 3, 2147483647 numtasks: 3
local:2: 0, 2147483647 numtasks: 3
local:2: 9, 2147483647 numtasks: 3
{code}
                
> Fix unit test fails
> -------------------
>
>                 Key: HAMA-709
>                 URL: https://issues.apache.org/jira/browse/HAMA-709
>             Project: Hama
>          Issue Type: Bug
>            Reporter: Edward J. Yoon
>            Assignee: Edward J. Yoon
>             Fix For: 0.6.1
>
>
> {code}
> -------------------------------------------------------------------------------
> Test set: org.apache.hama.examples.MindistSearchTest
> -------------------------------------------------------------------------------
> Tests run: 2, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.012 sec <<<
FAILURE!
> testMindistSearch(org.apache.hama.examples.MindistSearchTest)  Time elapsed: 0.004 sec
 <<< FAILURE!
> junit.framework.ComparisonFailure: null expected:<[2]> but was:<[6]>
> 	at junit.framework.Assert.assertEquals(Assert.java:81)
> 	at junit.framework.Assert.assertEquals(Assert.java:87)
> 	at org.apache.hama.examples.MindistSearchTest.verifyResult(MindistSearchTest.java:91)
> 	at org.apache.hama.examples.MindistSearchTest.testMindistSearch(MindistSearchTest.java:64)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> 	at java.lang.reflect.Method.invoke(Method.java:597)
> 	at junit.framework.TestCase.runTest(TestCase.java:168)
> 	at junit.framework.TestCase.runBare(TestCase.java:134)
> 	at junit.framework.TestResult$1.protect(TestResult.java:110)
> 	at junit.framework.TestResult.runProtected(TestResult.java:128)
> 	at junit.framework.TestResult.run(TestResult.java:113)
> 	at junit.framework.TestCase.run(TestCase.java:124)
> 	at junit.framework.TestSuite.runTest(TestSuite.java:232)
> 	at junit.framework.TestSuite.run(TestSuite.java:227)
> 	at org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:83)
> 	at org.junit.runners.Suite.runChild(Suite.java:128)
> 	at org.junit.runners.Suite.runChild(Suite.java:24)
> 	at org.junit.runners.ParentRunner$3.run(ParentRunner.java:193)
> 	at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:52)
> 	at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:191)
> 	at org.junit.runners.ParentRunner.access$000(ParentRunner.java:42)
> 	at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:184)
> 	at org.junit.runners.ParentRunner.run(ParentRunner.java:236)
> 	at org.junit.runner.JUnitCore.run(JUnitCore.java:157)
> 	at org.junit.runner.JUnitCore.run(JUnitCore.java:136)
> 	at org.junit.runner.JUnitCore.run(JUnitCore.java:127)
> 	at org.apache.maven.surefire.junitcore.JUnitCoreTestSet.runJunitCore(JUnitCoreTestSet.java:208)
> 	at org.apache.maven.surefire.junitcore.JUnitCoreTestSet.execute(JUnitCoreTestSet.java:95)
> 	at org.apache.maven.surefire.junitcore.JUnitCoreTestSet.execute(JUnitCoreTestSet.java:82)
> 	at org.apache.maven.surefire.junitcore.JUnitCoreDirectoryTestSuite.execute(JUnitCoreDirectoryTestSuite.java:84)
> 	at org.apache.maven.surefire.Surefire.run(Surefire.java:104)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> 	at java.lang.reflect.Method.invoke(Method.java:597)
> 	at org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:290)
> 	at org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:1017)
> {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

Mime
View raw message