You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Nicola Ferraro (JIRA)" <ji...@apache.org> on 2017/05/26 07:27:04 UTC

[jira] [Commented] (CAMEL-11334) camel-grpc - Unit test fails due port number issue

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

Nicola Ferraro commented on CAMEL-11334:
----------------------------------------

Claus it's using the port generator and 1101 should not be reserved. Tests are ok in CI: https://builds.apache.org/view/A-D/view/Camel/job/Camel.trunk.fulltest.java8/org.apache.camel$camel-grpc/1368/testReport/

> camel-grpc - Unit test fails due port number issue
> --------------------------------------------------
>
>                 Key: CAMEL-11334
>                 URL: https://issues.apache.org/jira/browse/CAMEL-11334
>             Project: Camel
>          Issue Type: Test
>          Components: camel-grpc
>    Affects Versions: 2.20.0
>            Reporter: Claus Ibsen
>            Assignee: Nicola Ferraro
>
> It seems to take on a low port number like 1101 and then failing
> {code}
> 2017-05-25 19:45:42,614 [ult-executor-72] INFO  GrpcConsumerConcurrentTest     - Exception
> io.grpc.StatusRuntimeException: UNAVAILABLE
> 	at io.grpc.Status.asRuntimeException(Status.java:540) ~[grpc-core-1.2.0.jar:1.2.0]
> 	at io.grpc.stub.ClientCalls$StreamObserverToCallListenerAdapter.onClose(ClientCalls.java:392) [grpc-stub-1.2.0.jar:1.2.0]
> 	at io.grpc.internal.ClientCallImpl.closeObserver(ClientCallImpl.java:428) [grpc-core-1.2.0.jar:1.2.0]
> 	at io.grpc.internal.ClientCallImpl.access$100(ClientCallImpl.java:76) [grpc-core-1.2.0.jar:1.2.0]
> 	at io.grpc.internal.ClientCallImpl$ClientStreamListenerImpl.close(ClientCallImpl.java:514) [grpc-core-1.2.0.jar:1.2.0]
> 	at io.grpc.internal.ClientCallImpl$ClientStreamListenerImpl.access$700(ClientCallImpl.java:431) [grpc-core-1.2.0.jar:1.2.0]
> 	at io.grpc.internal.ClientCallImpl$ClientStreamListenerImpl$1StreamClosed.runInContext(ClientCallImpl.java:546) [grpc-core-1.2.0.jar:1.2.0]
> 	at io.grpc.internal.ContextRunnable.run(ContextRunnable.java:52) [grpc-core-1.2.0.jar:1.2.0]
> 	at io.grpc.internal.SerializingExecutor$TaskRunner.run(SerializingExecutor.java:152) [grpc-core-1.2.0.jar:1.2.0]
> 	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) [?:1.8.0_131]
> 	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) [?:1.8.0_131]
> 	at java.lang.Thread.run(Thread.java:748) [?:1.8.0_131]
> Caused by: io.netty.channel.AbstractChannel$AnnotatedConnectException: Connection refused: localhost/0:0:0:0:0:0:0:1:1101
> 	at sun.nio.ch.SocketChannelImpl.checkConnect(Native Method) ~[?:1.8.0_131]
> 	at sun.nio.ch.SocketChannelImpl.finishConnect(SocketChannelImpl.java:717) ~[?:1.8.0_131]
> 	at io.netty.channel.socket.nio.NioSocketChannel.doFinishConnect(NioSocketChannel.java:347) ~[netty-transport-4.1.8.Final.jar:4.1.8.Final]
> 	at io.netty.channel.nio.AbstractNioChannel$AbstractNioUnsafe.finishConnect(AbstractNioChannel.java:340) ~[netty-transport-4.1.8.Final.jar:4.1.8.Final]
> 	at io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:630) ~[netty-transport-4.1.8.Final.jar:4.1.8.Final]
> 	at io.netty.channel.nio.NioEventLoop.processSelectedKeysOptimized(NioEventLoop.java:565) ~[netty-transport-4.1.8.Final.jar:4.1.8.Final]
> 	at io.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java:479) ~[netty-transport-4.1.8.Final.jar:4.1.8.Final]
> 	at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:441) ~[netty-transport-4.1.8.Final.jar:4.1.8.Final]
> 	at io.netty.util.concurrent.SingleThreadEventExecutor$5.run(SingleThreadEventExecutor.java:858) ~[netty-common-4.1.8.Final.jar:4.1.8.Final]
> 	at io.netty.util.concurrent.DefaultThreadFactory$DefaultRunnableDecorator.run(DefaultThreadFactory.java:144) ~[netty-common-4.1.8.Final.jar:4.1.8.Final]
> 	... 1 more
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)