You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@eventmesh.apache.org by "Alonexc (via GitHub)" <gi...@apache.org> on 2024/04/22 07:33:58 UTC

[I] [Bug] close tcp client failed (eventmesh)

Alonexc opened a new issue, #4855:
URL: https://github.com/apache/eventmesh/issues/4855

   ### Search before asking
   
   - [X] I had searched in the [issues](https://github.com/apache/eventmesh/issues?q=is%3Aissue) and found no similar issues.
   
   
   ### Environment
   
   Mac
   
   ### EventMesh version
   
   master
   
   ### What happened
   
   Initialize the TCP client, and then close the client to report an error, but the server is normally closed channel.
   
   ### How to reproduce
   
   1. start runtime
   2. Using TCP client to open and close the connection.
   
   ### Debug logs
   
   ```Java
   2024-04-22 15:28:16,602 WARN  [main] TcpClient(TcpClient.java:134) - close tcp client failed.|remote address=null
   io.netty.channel.StacklessClosedChannelException: null
   	at io.netty.channel.AbstractChannel$AbstractUnsafe.write(Object, ChannelPromise)(Unknown Source) ~[netty-transport-4.1.79.Final.jar:4.1.79.Final]
   2024-04-22 15:28:16,603 INFO  [main] RequestContext(RequestContext.java:75) - _RequestContext|create|key=8351078330
   2024-04-22 15:28:16,606 ERROR [main] CloudEventTCPSubClient(CloudEventTCPSubClient.java:141) - exception occurred when close
   java.lang.InterruptedException: null
   	at java.util.concurrent.CompletableFuture.reportGet(CompletableFuture.java:347) ~[?:1.8.0_311]
   	at java.util.concurrent.CompletableFuture.get(CompletableFuture.java:1908) ~[?:1.8.0_311]
   	at org.apache.eventmesh.client.tcp.common.TcpClient.io(TcpClient.java:193) ~[eventmesh-sdk-java-1.10.0-release.jar:1.10.0-release]
   	at org.apache.eventmesh.client.tcp.common.TcpClient.goodbye(TcpClient.java:205) ~[eventmesh-sdk-java-1.10.0-release.jar:1.10.0-release]
   	at org.apache.eventmesh.client.tcp.impl.cloudevent.CloudEventTCPSubClient.close(CloudEventTCPSubClient.java:138) ~[eventmesh-sdk-java-1.10.0-release.jar:1.10.0-release]
   	at org.apache.eventmesh.client.tcp.impl.cloudevent.CloudEventTCPClient.close(CloudEventTCPClient.java:99) ~[eventmesh-sdk-java-1.10.0-release.jar:1.10.0-release]
   	at org.apache.eventmesh.tcp.demo.sub.cloudevents.AsyncSubscribe.main(AsyncSubscribe.java:65) ~[main/:?]
   2024-04-22 15:28:16,607 DEBUG [nioEventLoopGroup-3-1] Codec(Codec.java:64) - Encode pkg={"header":{"cmd":"CLIENT_GOODBYE_REQUEST","code":0,"seq":"8351078330","properties":{},"command":"CLIENT_GOODBYE_REQUEST"}}
   2024-04-22 15:28:16,628 DEBUG [nioEventLoopGroup-3-1] Codec(Codec.java:181) - Decode headerJson={"cmd":"CLIENT_GOODBYE_RESPONSE","code":0,"desc":"success","seq":"8351078330","properties":{},"command":"CLIENT_GOODBYE_RESPONSE"}
   ```
   ```
   
   
   ### Are you willing to submit PR?
   
   - [ ] Yes I am willing to submit a PR!
   
   ### Code of Conduct
   
   - [ ] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct) *


-- 
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: issues-unsubscribe@eventmesh.apache.org.apache.org

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


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@eventmesh.apache.org
For additional commands, e-mail: issues-help@eventmesh.apache.org


Re: [I] [Bug] close tcp client failed (eventmesh)

Posted by "mxsm (via GitHub)" <gi...@apache.org>.
mxsm closed issue #4855: [Bug] close tcp client failed
URL: https://github.com/apache/eventmesh/issues/4855


-- 
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: issues-unsubscribe@eventmesh.apache.org

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


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@eventmesh.apache.org
For additional commands, e-mail: issues-help@eventmesh.apache.org