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-855) Handling Address binding exceptions
Date Mon, 07 Apr 2014 01:08:17 GMT

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

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


Re-open. In MiniBSPCluster, Master uses hard-coded 40000 port but we don't need to specify
the master port for unit test.

To avoid "already in use" execption, use the try-catch and then use the available port. See
HamaMessageManagerImp.startServer() method.

{code}
14/04/07 00:39:58 ERROR hama.MiniBSPCluster: Fail to startup BSP Master.
java.net.BindException: Problem binding to localhost/127.0.0.1:40000 : Address already in
use
	at org.apache.hama.ipc.Server.bind(Server.java:250)
	at org.apache.hama.ipc.Server$Listener.<init>(Server.java:316)
	at org.apache.hama.ipc.Server.<init>(Server.java:1313)
	at org.apache.hama.ipc.RPC$Server.<init>(RPC.java:597)
	at org.apache.hama.ipc.RPC.getServer(RPC.java:553)
	at org.apache.hama.ipc.RPC.getServer(RPC.java:540)
	at org.apache.hama.ipc.RPC.getServer(RPC.java:530)
	at org.apache.hama.bsp.BSPMaster.<init>(BSPMaster.java:298)
	at org.apache.hama.bsp.BSPMaster.startMaster(BSPMaster.java:489)
	at org.apache.hama.bsp.BSPMaster.startMaster(BSPMaster.java:475)
	at org.apache.hama.MiniBSPCluster$BSPMasterRunner.run(MiniBSPCluster.java:61)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:439)
	at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
	at java.util.concurrent.FutureTask.run(FutureTask.java:138)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:98)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:206)
	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:895)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:918)
	at java.lang.Thread.run(Thread.java:662)
Caused by: java.net.BindException: Address already in use
	at sun.nio.ch.Net.bind(Native Method)
	at sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:124)
	at sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:59)
	at org.apache.hama.ipc.Server.bind(Server.java:248)
	... 18 more
{code}

> Handling Address binding exceptions
> -----------------------------------
>
>                 Key: HAMA-855
>                 URL: https://issues.apache.org/jira/browse/HAMA-855
>             Project: Hama
>          Issue Type: Bug
>          Components: bsp core
>    Affects Versions: 0.6.3
>            Reporter: Edward J. Yoon
>            Assignee: Edward J. Yoon
>             Fix For: 0.7.0
>
>
> Often, build fails with Address binding exceptions. We can add some re-attempt mechanism
to avoid this situations.
> https://builds.apache.org/job/Hama-trunk/245/testReport/org.apache.hama.bsp/TestBSPMasterGroomServer/testSubmitJob/
> {code}
> 14/01/21 01:15:23 ERROR bsp.GroomServer: Got fatal exception while reinitializing GroomServer:
java.net.BindException: Problem binding to vesta.apache.org/67.195.138.9:53307 : Address already
in use
> 	at org.apache.hama.ipc.Server.bind(Server.java:250)
> 	at org.apache.hama.ipc.Server$Listener.<init>(Server.java:316)
> 	at org.apache.hama.ipc.Server.<init>(Server.java:1313)
> 	at org.apache.hama.ipc.RPC$Server.<init>(RPC.java:595)
> 	at org.apache.hama.ipc.RPC.getServer(RPC.java:551)
> 	at org.apache.hama.ipc.RPC.getServer(RPC.java:538)
> 	at org.apache.hama.ipc.RPC.getServer(RPC.java:528)
> 	at org.apache.hama.bsp.GroomServer.initialize(GroomServer.java:326)
> 	at org.apache.hama.bsp.GroomServer.run(GroomServer.java:832)
> 	at java.lang.Thread.run(Thread.java:662)
> Caused by: java.net.BindException: Address already in use
> 	at sun.nio.ch.Net.bind(Native Method)
> 	at sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:124)
> 	at sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:59)
> 	at org.apache.hama.ipc.Server.bind(Server.java:248)
> 	... 9 more
> {code}



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Mime
View raw message