You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@rocketmq.apache.org by GitBox <gi...@apache.org> on 2022/12/06 04:45:52 UTC
[GitHub] [rocketmq-connect] shy-share opened a new issue, #387: DistributedConnectControllerTest #startTest The port is still occupied after the method is executed
shy-share opened a new issue, #387:
URL: https://github.com/apache/rocketmq-connect/issues/387
After executing this method, it cannot be executed again and the error is reported because the port is already occupied.I want to fix him but I don't know where to start.Please provide some advice Thanks
java.net.BindException: Address already in use: bind
at sun.nio.ch.Net.bind0(Native Method)
at sun.nio.ch.Net.bind(Net.java:433)
at sun.nio.ch.Net.bind(Net.java:425)
at sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:223)
at io.netty.channel.socket.nio.NioServerSocketChannel.doBind(NioServerSocketChannel.java:127)
at io.netty.channel.AbstractChannel$AbstractUnsafe.bind(AbstractChannel.java:501)
at io.netty.channel.DefaultChannelPipeline$HeadContext.bind(DefaultChannelPipeline.java:1218)
at io.netty.channel.AbstractChannelHandlerContext.invokeBind(AbstractChannelHandlerContext.java:506)
at io.netty.channel.AbstractChannelHandlerContext.bind(AbstractChannelHandlerContext.java:491)
at io.netty.channel.DefaultChannelPipeline.bind(DefaultChannelPipeline.java:965)
at io.netty.channel.AbstractChannel.bind(AbstractChannel.java:210)
at io.netty.bootstrap.AbstractBootstrap$2.run(AbstractBootstrap.java:353)
at io.netty.util.concurrent.SingleThreadEventExecutor.runAllTasks(SingleThreadEventExecutor.java:408)
at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:455)
at io.netty.util.concurrent.SingleThreadEventExecutor$2.run(SingleThreadEventExecutor.java:140)
at io.netty.util.concurrent.DefaultThreadFactory$DefaultRunnableDecorator.run(DefaultThreadFactory.java:144)
at java.lang.Thread.run(Thread.java:748)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@rocketmq.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [rocketmq-connect] shy-share commented on issue #387: DistributedConnectControllerTest #startTest The port is still occupied after the method is executed
Posted by GitBox <gi...@apache.org>.
shy-share commented on issue #387:
URL: https://github.com/apache/rocketmq-connect/issues/387#issuecomment-1338926388
> I tried running the UT, and the port closed after the method was executed
>
> Hi @shy-share , How do I reproduce this scene?
@Oliverwqcwrw Oh, i found the problem, it's because I started a docker desttop locally that caused the port conflict, I thought it was the error caused by executing the test method twice
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@rocketmq.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [rocketmq-connect] Oliverwqcwrw commented on issue #387: DistributedConnectControllerTest #startTest The port is still occupied after the method is executed
Posted by GitBox <gi...@apache.org>.
Oliverwqcwrw commented on issue #387:
URL: https://github.com/apache/rocketmq-connect/issues/387#issuecomment-1338884312
Hello @shy-share ,
There is a mockNameServer and mockBroker started before startTest starts, and maybe port 9876 or 10911 is occupied
You can stop ports 9876 and 10911 and try again
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@rocketmq.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [rocketmq-connect] Oliverwqcwrw commented on issue #387: DistributedConnectControllerTest #startTest The port is still occupied after the method is executed
Posted by GitBox <gi...@apache.org>.
Oliverwqcwrw commented on issue #387:
URL: https://github.com/apache/rocketmq-connect/issues/387#issuecomment-1338921544
I tried running the UT, and the port closed after the method was executed
Hi @shy-share , How do I reproduce this scene?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@rocketmq.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [rocketmq-connect] shy-share closed issue #387: DistributedConnectControllerTest #startTest The port is still occupied after the method is executed
Posted by GitBox <gi...@apache.org>.
shy-share closed issue #387: DistributedConnectControllerTest #startTest The port is still occupied after the method is executed
URL: https://github.com/apache/rocketmq-connect/issues/387
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@rocketmq.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [rocketmq-connect] shy-share commented on issue #387: DistributedConnectControllerTest #startTest The port is still occupied after the method is executed
Posted by GitBox <gi...@apache.org>.
shy-share commented on issue #387:
URL: https://github.com/apache/rocketmq-connect/issues/387#issuecomment-1338913385
> Hello @shy-share , There is a mockNameServer and mockBroker started before startTest starts, and maybe port 9876 or 10911 is occupied You can stop ports 9876 and 10911 and try again
I know, but the code is shutdown, but now the port is still occupied, so it should not be as expected, right?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@rocketmq.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org