You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@tajo.apache.org by "Jinho Kim (JIRA)" <ji...@apache.org> on 2014/11/19 04:26:33 UTC

[jira] [Commented] (TAJO-1197) Unit test failed: unable to create new native thread

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

Jinho Kim commented on TAJO-1197:
---------------------------------

I found some case as following :
* HA unit test does not close the testing cluster
* TajoCli test does not close the jline stream
* Some unit test does not close the TajoClient
* Default RPC threads is too big in unit test

> Unit test failed: unable to create new native thread 
> -----------------------------------------------------
>
>                 Key: TAJO-1197
>                 URL: https://issues.apache.org/jira/browse/TAJO-1197
>             Project: Tajo
>          Issue Type: Bug
>          Components: test
>    Affects Versions: 0.9.0
>            Reporter: Jinho Kim
>
> TravisCI are occasionally failed due to too many thread created
> {noformat}
> Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 4.563 sec <<< FAILURE! - in org.apache.tajo.master.ha.TestHAServiceHDFSImpl
> testTwoBackupMasters(org.apache.tajo.master.ha.TestHAServiceHDFSImpl)  Time elapsed: 4.563 sec  <<< ERROR!
> java.lang.OutOfMemoryError: unable to create new native thread
> 	at java.lang.Thread.start0(Native Method)
> 	at java.lang.Thread.start(Thread.java:679)
> 	at java.util.concurrent.ThreadPoolExecutor.addWorker(ThreadPoolExecutor.java:950)
> 	at java.util.concurrent.ThreadPoolExecutor.execute(ThreadPoolExecutor.java:1372)
> 	at org.jboss.netty.util.internal.DeadLockProofWorker.start(DeadLockProofWorker.java:38)
> 	at org.jboss.netty.channel.socket.nio.AbstractNioSelector.openSelector(AbstractNioSelector.java:343)
> 	at org.jboss.netty.channel.socket.nio.AbstractNioSelector.<init>(AbstractNioSelector.java:95)
> 	at org.jboss.netty.channel.socket.nio.AbstractNioWorker.<init>(AbstractNioWorker.java:53)
> 	at org.jboss.netty.channel.socket.nio.NioWorker.<init>(NioWorker.java:45)
> 	at org.jboss.netty.channel.socket.nio.NioWorkerPool.createWorker(NioWorkerPool.java:45)
> 	at org.jboss.netty.channel.socket.nio.NioWorkerPool.createWorker(NioWorkerPool.java:28)
> 	at org.jboss.netty.channel.socket.nio.AbstractNioWorkerPool.newWorker(AbstractNioWorkerPool.java:99)
> 	at org.jboss.netty.channel.socket.nio.AbstractNioWorkerPool.init(AbstractNioWorkerPool.java:69)
> 	at org.jboss.netty.channel.socket.nio.NioWorkerPool.<init>(NioWorkerPool.java:39)
> 	at org.apache.tajo.rpc.RpcChannelFactory.createServerChannelFactory(RpcChannelFactory.java:89)
> 	at org.apache.tajo.rpc.NettyServerBase.init(NettyServerBase.java:69)
> 	at org.apache.tajo.rpc.AsyncRpcServer.<init>(AsyncRpcServer.java:58)
> 	at org.apache.tajo.worker.TajoWorkerManagerService.init(TajoWorkerManagerService.java:73)
> 	at org.apache.hadoop.service.CompositeService.serviceInit(CompositeService.java:107)
> 	at org.apache.tajo.worker.TajoWorker.serviceInit(TajoWorker.java:236)
> 	at org.apache.hadoop.service.AbstractService.init(AbstractService.java:163)
> 	at org.apache.tajo.worker.TajoWorker.startWorker(TajoWorker.java:146)
> 	at org.apache.tajo.TajoTestingCluster.startTajoWorkers(TajoTestingCluster.java:401)
> 	at org.apache.tajo.TajoTestingCluster.startMiniTajoCluster(TajoTestingCluster.java:339)
> 	at org.apache.tajo.TajoTestingCluster.startMiniCluster(TajoTestingCluster.java:490)
> 	at org.apache.tajo.TajoTestingCluster.startMiniCluster(TajoTestingCluster.java:455)
> 	at org.apache.tajo.master.ha.TestHAServiceHDFSImpl.testTwoBackupMasters(TestHAServiceHDFSImpl.java:56)
> {noformat}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)