You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hama.apache.org by Apurv Verma <da...@gmail.com> on 2012/10/08 00:20:47 UTC

Maven Test failing

Hello,
 Tests are failing in core. Appears to me that connection to zookeeper is
lost. Any idea what might be going wrong?

 1) TestZookeeper

java.net.ConnectException: Connection refused
 at sun.nio.ch.SocketChannelImpl.checkConnect(Native Method)
at sun.nio.ch.SocketChannelImpl.finishConnect(SocketChannelImpl.java:599)
 at org.apache.zookeeper.ClientCnxn$SendThread.run(ClientCnxn.java:1119)

12/10/08 03:26:29 ERROR sync.ZKSyncBSPMasterClient:
org.apache.zookeeper.KeeperException$ConnectionLossException:
KeeperErrorCode = ConnectionLoss for /bsp
at org.apache.zookeeper.KeeperException.create(KeeperException.java:90)
 at org.apache.zookeeper.KeeperException.create(KeeperException.java:42)
at org.apache.zookeeper.ZooKeeper.exists(ZooKeeper.java:809)
 at org.apache.zookeeper.ZooKeeper.exists(ZooKeeper.java:837)
at
org.apache.hama.bsp.sync.ZKSyncBSPMasterClient.init(ZKSyncBSPMasterClient.java:62)
 at
org.apache.hama.bsp.TestZooKeeper.testClearZKNodes(TestZooKeeper.java:88)
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)

--
Regards,
Apurv Verma

Re: Maven Test failing

Posted by Apurv Verma <da...@gmail.com>.
Actually sometimes this test fails even its the sole test being run. I
discovered this seems to be a known issue on macs. The solution is
increasing the Thread.sleep time to 10000 after startup.
http://techblog.hybris.com/2012/05/14/zookeeper-on-mac-connectionlossexception-3/


--
Regards,
Apurv Verma





On Tue, Oct 9, 2012 at 10:51 AM, Thomas Jungblut
<th...@gmail.com>wrote:

> Hey,
>
> that is obviously a parallel execution problem.
> You can either turn that off or fix the zookeeper testcases so that their
> ports don't collide with each other.
>
> 2012/10/9 Edward J. Yoon <ed...@apache.org>
>
> > Permission?
> >
> > On Tue, Oct 9, 2012 at 6:35 AM, Apurv Verma <da...@gmail.com> wrote:
> > > All zookeeper related tests are failing for me. I am using MacOSX with
> > > java6.
> > >
> > > 12/10/09 03:00:02 ERROR sync.ZKSyncClient: Error checking zk path
> > > /bsp/job_abc_0001/1/test
> > > org.apache.zookeeper.KeeperException$ConnectionLossException:
> > > KeeperErrorCode = ConnectionLoss for /bsp/job_abc_0001/1/test
> > >  at
> org.apache.zookeeper.KeeperException.create(KeeperException.java:90)
> > > at org.apache.zookeeper.KeeperException.create(KeeperException.java:42)
> > >  at org.apache.zookeeper.ZooKeeper.exists(ZooKeeper.java:809)
> > > at org.apache.zookeeper.ZooKeeper.exists(ZooKeeper.java:837)
> > >
> > > Tried debugging TestZookeeper test, individually they don't fail (by a
> > > small tweak, calling close() on peerClient and masterClient at the end
> of
> > > the test), but in the mvn test they break. I think this is a zookeeper
> > > problem? Any idea about how to solve it?
> > >
> > >
> > > --
> > > Regards,
> > > Apurv Verma
> > >
> > >
> > >
> > >
> > >
> > > On Mon, Oct 8, 2012 at 3:50 AM, Apurv Verma <da...@gmail.com> wrote:
> > >
> > >> Hello,
> > >>  Tests are failing in core. Appears to me that connection to zookeeper
> > is
> > >> lost. Any idea what might be going wrong?
> > >>
> > >>  1) TestZookeeper
> > >>
> > >> java.net.ConnectException: Connection refused
> > >>  at sun.nio.ch.SocketChannelImpl.checkConnect(Native Method)
> > >> at
> > sun.nio.ch.SocketChannelImpl.finishConnect(SocketChannelImpl.java:599)
> > >>  at
> org.apache.zookeeper.ClientCnxn$SendThread.run(ClientCnxn.java:1119)
> > >>
> > >> 12/10/08 03:26:29 ERROR sync.ZKSyncBSPMasterClient:
> > >> org.apache.zookeeper.KeeperException$ConnectionLossException:
> > >> KeeperErrorCode = ConnectionLoss for /bsp
> > >> at
> org.apache.zookeeper.KeeperException.create(KeeperException.java:90)
> > >>  at
> org.apache.zookeeper.KeeperException.create(KeeperException.java:42)
> > >> at org.apache.zookeeper.ZooKeeper.exists(ZooKeeper.java:809)
> > >>  at org.apache.zookeeper.ZooKeeper.exists(ZooKeeper.java:837)
> > >> at
> > >>
> >
> org.apache.hama.bsp.sync.ZKSyncBSPMasterClient.init(ZKSyncBSPMasterClient.java:62)
> > >>  at
> > >>
> > org.apache.hama.bsp.TestZooKeeper.testClearZKNodes(TestZooKeeper.java:88)
> > >> 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)
> > >>
> > >> --
> > >> Regards,
> > >> Apurv Verma
> > >>
> > >>
> > >>
> > >>
> >
> >
> >
> > --
> > Best Regards, Edward J. Yoon
> > @eddieyoon
> >
>

Re: Maven Test failing

Posted by Thomas Jungblut <th...@gmail.com>.
Hey,

that is obviously a parallel execution problem.
You can either turn that off or fix the zookeeper testcases so that their
ports don't collide with each other.

2012/10/9 Edward J. Yoon <ed...@apache.org>

> Permission?
>
> On Tue, Oct 9, 2012 at 6:35 AM, Apurv Verma <da...@gmail.com> wrote:
> > All zookeeper related tests are failing for me. I am using MacOSX with
> > java6.
> >
> > 12/10/09 03:00:02 ERROR sync.ZKSyncClient: Error checking zk path
> > /bsp/job_abc_0001/1/test
> > org.apache.zookeeper.KeeperException$ConnectionLossException:
> > KeeperErrorCode = ConnectionLoss for /bsp/job_abc_0001/1/test
> >  at org.apache.zookeeper.KeeperException.create(KeeperException.java:90)
> > at org.apache.zookeeper.KeeperException.create(KeeperException.java:42)
> >  at org.apache.zookeeper.ZooKeeper.exists(ZooKeeper.java:809)
> > at org.apache.zookeeper.ZooKeeper.exists(ZooKeeper.java:837)
> >
> > Tried debugging TestZookeeper test, individually they don't fail (by a
> > small tweak, calling close() on peerClient and masterClient at the end of
> > the test), but in the mvn test they break. I think this is a zookeeper
> > problem? Any idea about how to solve it?
> >
> >
> > --
> > Regards,
> > Apurv Verma
> >
> >
> >
> >
> >
> > On Mon, Oct 8, 2012 at 3:50 AM, Apurv Verma <da...@gmail.com> wrote:
> >
> >> Hello,
> >>  Tests are failing in core. Appears to me that connection to zookeeper
> is
> >> lost. Any idea what might be going wrong?
> >>
> >>  1) TestZookeeper
> >>
> >> java.net.ConnectException: Connection refused
> >>  at sun.nio.ch.SocketChannelImpl.checkConnect(Native Method)
> >> at
> sun.nio.ch.SocketChannelImpl.finishConnect(SocketChannelImpl.java:599)
> >>  at org.apache.zookeeper.ClientCnxn$SendThread.run(ClientCnxn.java:1119)
> >>
> >> 12/10/08 03:26:29 ERROR sync.ZKSyncBSPMasterClient:
> >> org.apache.zookeeper.KeeperException$ConnectionLossException:
> >> KeeperErrorCode = ConnectionLoss for /bsp
> >> at org.apache.zookeeper.KeeperException.create(KeeperException.java:90)
> >>  at org.apache.zookeeper.KeeperException.create(KeeperException.java:42)
> >> at org.apache.zookeeper.ZooKeeper.exists(ZooKeeper.java:809)
> >>  at org.apache.zookeeper.ZooKeeper.exists(ZooKeeper.java:837)
> >> at
> >>
> org.apache.hama.bsp.sync.ZKSyncBSPMasterClient.init(ZKSyncBSPMasterClient.java:62)
> >>  at
> >>
> org.apache.hama.bsp.TestZooKeeper.testClearZKNodes(TestZooKeeper.java:88)
> >> 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)
> >>
> >> --
> >> Regards,
> >> Apurv Verma
> >>
> >>
> >>
> >>
>
>
>
> --
> Best Regards, Edward J. Yoon
> @eddieyoon
>

Re: Maven Test failing

Posted by "Edward J. Yoon" <ed...@apache.org>.
Permission?

On Tue, Oct 9, 2012 at 6:35 AM, Apurv Verma <da...@gmail.com> wrote:
> All zookeeper related tests are failing for me. I am using MacOSX with
> java6.
>
> 12/10/09 03:00:02 ERROR sync.ZKSyncClient: Error checking zk path
> /bsp/job_abc_0001/1/test
> org.apache.zookeeper.KeeperException$ConnectionLossException:
> KeeperErrorCode = ConnectionLoss for /bsp/job_abc_0001/1/test
>  at org.apache.zookeeper.KeeperException.create(KeeperException.java:90)
> at org.apache.zookeeper.KeeperException.create(KeeperException.java:42)
>  at org.apache.zookeeper.ZooKeeper.exists(ZooKeeper.java:809)
> at org.apache.zookeeper.ZooKeeper.exists(ZooKeeper.java:837)
>
> Tried debugging TestZookeeper test, individually they don't fail (by a
> small tweak, calling close() on peerClient and masterClient at the end of
> the test), but in the mvn test they break. I think this is a zookeeper
> problem? Any idea about how to solve it?
>
>
> --
> Regards,
> Apurv Verma
>
>
>
>
>
> On Mon, Oct 8, 2012 at 3:50 AM, Apurv Verma <da...@gmail.com> wrote:
>
>> Hello,
>>  Tests are failing in core. Appears to me that connection to zookeeper is
>> lost. Any idea what might be going wrong?
>>
>>  1) TestZookeeper
>>
>> java.net.ConnectException: Connection refused
>>  at sun.nio.ch.SocketChannelImpl.checkConnect(Native Method)
>> at sun.nio.ch.SocketChannelImpl.finishConnect(SocketChannelImpl.java:599)
>>  at org.apache.zookeeper.ClientCnxn$SendThread.run(ClientCnxn.java:1119)
>>
>> 12/10/08 03:26:29 ERROR sync.ZKSyncBSPMasterClient:
>> org.apache.zookeeper.KeeperException$ConnectionLossException:
>> KeeperErrorCode = ConnectionLoss for /bsp
>> at org.apache.zookeeper.KeeperException.create(KeeperException.java:90)
>>  at org.apache.zookeeper.KeeperException.create(KeeperException.java:42)
>> at org.apache.zookeeper.ZooKeeper.exists(ZooKeeper.java:809)
>>  at org.apache.zookeeper.ZooKeeper.exists(ZooKeeper.java:837)
>> at
>> org.apache.hama.bsp.sync.ZKSyncBSPMasterClient.init(ZKSyncBSPMasterClient.java:62)
>>  at
>> org.apache.hama.bsp.TestZooKeeper.testClearZKNodes(TestZooKeeper.java:88)
>> 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)
>>
>> --
>> Regards,
>> Apurv Verma
>>
>>
>>
>>



-- 
Best Regards, Edward J. Yoon
@eddieyoon

Re: Maven Test failing

Posted by Apurv Verma <da...@gmail.com>.
All zookeeper related tests are failing for me. I am using MacOSX with
java6.

12/10/09 03:00:02 ERROR sync.ZKSyncClient: Error checking zk path
/bsp/job_abc_0001/1/test
org.apache.zookeeper.KeeperException$ConnectionLossException:
KeeperErrorCode = ConnectionLoss for /bsp/job_abc_0001/1/test
 at org.apache.zookeeper.KeeperException.create(KeeperException.java:90)
at org.apache.zookeeper.KeeperException.create(KeeperException.java:42)
 at org.apache.zookeeper.ZooKeeper.exists(ZooKeeper.java:809)
at org.apache.zookeeper.ZooKeeper.exists(ZooKeeper.java:837)

Tried debugging TestZookeeper test, individually they don't fail (by a
small tweak, calling close() on peerClient and masterClient at the end of
the test), but in the mvn test they break. I think this is a zookeeper
problem? Any idea about how to solve it?


--
Regards,
Apurv Verma





On Mon, Oct 8, 2012 at 3:50 AM, Apurv Verma <da...@gmail.com> wrote:

> Hello,
>  Tests are failing in core. Appears to me that connection to zookeeper is
> lost. Any idea what might be going wrong?
>
>  1) TestZookeeper
>
> java.net.ConnectException: Connection refused
>  at sun.nio.ch.SocketChannelImpl.checkConnect(Native Method)
> at sun.nio.ch.SocketChannelImpl.finishConnect(SocketChannelImpl.java:599)
>  at org.apache.zookeeper.ClientCnxn$SendThread.run(ClientCnxn.java:1119)
>
> 12/10/08 03:26:29 ERROR sync.ZKSyncBSPMasterClient:
> org.apache.zookeeper.KeeperException$ConnectionLossException:
> KeeperErrorCode = ConnectionLoss for /bsp
> at org.apache.zookeeper.KeeperException.create(KeeperException.java:90)
>  at org.apache.zookeeper.KeeperException.create(KeeperException.java:42)
> at org.apache.zookeeper.ZooKeeper.exists(ZooKeeper.java:809)
>  at org.apache.zookeeper.ZooKeeper.exists(ZooKeeper.java:837)
> at
> org.apache.hama.bsp.sync.ZKSyncBSPMasterClient.init(ZKSyncBSPMasterClient.java:62)
>  at
> org.apache.hama.bsp.TestZooKeeper.testClearZKNodes(TestZooKeeper.java:88)
> 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)
>
> --
> Regards,
> Apurv Verma
>
>
>
>