YongGoose commented on issue #7440:
URL: 
https://github.com/apache/incubator-seata/issues/7440#issuecomment-2987598762

   > [@YongGoose](https://github.com/YongGoose) Hi
   > 
   > Based on my investigation of the build logs, the coverage drop in core 
module after PR [#7435](https://github.com/apache/incubator-seata/pull/7435) 
appears to be caused by port conflicts.
   > 
   > From the CI build logs, I found connection failures in core module tests:
   > 
   > ```
   > 2025-06-13T09:23:25.4242455Z 09:23:25.402 [main] INFO 
org.apache.seata.core.rpc.netty.NettyClientChannelManager -- will connect to 
127.0.0.1:8091
   > 2025-06-13T09:23:25.4247915Z 09:23:25.403 [main] INFO 
org.apache.seata.core.rpc.netty.RmNettyRemotingClient -- RM will register 
:jdbc:xx://localhost/test
   > 2025-06-13T09:23:25.4250828Z 09:23:25.404 [main] INFO 
org.apache.seata.core.rpc.netty.NettyPoolableFactory -- NettyPool create 
channel to transactionRole:RMROLE,address:127.0.0.1:8091,msg:< 
RegisterRMRequest{resourceIds='jdbc:xx://localhost/test', 
version='2.5.0-SNAPSHOT', applicationId='fail_fast', 
transactionServiceGroup='default_tx_group', extraData='null'} >
   > 2025-06-13T09:23:25.4280752Z 09:23:25.410 [configOperate_2_1_2] DEBUG 
org.apache.seata.config.FileConfiguration -- Could not found property 
transport.protocol, try to use default value instead. exception:No 
configuration setting found for key 'transport.protocol'
   > 2025-06-13T09:23:25.4283719Z 09:23:25.413 [configOperate_2_1_2] DEBUG 
org.apache.seata.config.FileConfiguration -- Could not found property 
transport.serialization, try to use default value instead. exception:No 
configuration setting found for key 'transport.serialization'
   > 2025-06-13T09:23:25.4286192Z 09:23:25.415 
[NettyClientSelector_RMROLE_4_1_8] INFO 
org.apache.seata.core.rpc.netty.AbstractNettyRemotingClient -- 
ChannelHandlerContext(AbstractNettyRemotingClient$ClientHandler#0, [id: 
0x63cf5273]) will closed
   > 2025-06-13T09:23:25.4288158Z 09:23:25.415 [main] ERROR 
org.apache.seata.core.rpc.netty.NettyClientChannelManager -- 0304 register RM 
failed.
   > 2025-06-13T09:23:25.4289460Z 
org.apache.seata.common.exception.FrameworkException: can not connect to 
services-server.
   > 2025-06-13T09:23:25.4290693Z       at 
org.apache.seata.core.rpc.netty.NettyClientBootstrap.getNewChannel(NettyClientBootstrap.java:212)
   > ```
   > 
   > PR [#7435](https://github.com/apache/incubator-seata/pull/7435): 
Introduced dynamic port allocation in server module Core Module: Still uses 
hardcoded port 8091 for client connections
   
   Would you mind sharing where the port conflict occurred?
   
   From the logs, it seems that the RM failed to connect to the server. This 
could be because the server’s port was dynamically assigned and not actually 
listening on 8091 — or, as you mentioned, there might have been a conflict on 
port 8091 that prevented the connection.
   
   Do you happen to see any additional information in the logs?
   
   - 
https://github.com/apache/incubator-seata/blob/2.x/core/src/main/java/org/apache/seata/core/rpc/netty/NettyClientBootstrap.java#L179-#L208


-- 
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: notifications-unsubscr...@seata.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscr...@seata.apache.org
For additional commands, e-mail: notifications-h...@seata.apache.org

Reply via email to