You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@activemq.apache.org by "Matt Pavlovich (Jira)" <ji...@apache.org> on 2024/10/21 15:26:00 UTC
[jira] [Commented] (AMQ-9597) Improve handling when zero (0) bytes or incomplete command packages are read across a transport
[ https://issues.apache.org/jira/browse/AMQ-9597?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17891569#comment-17891569 ]
Matt Pavlovich commented on AMQ-9597:
-------------------------------------
I'm thinking a counter to track occurances on the transport connector, and squash the exception tracktrace logging at WARN level (leave it on for debug level)
> Improve handling when zero (0) bytes or incomplete command packages are read across a transport
> -----------------------------------------------------------------------------------------------
>
> Key: AMQ-9597
> URL: https://issues.apache.org/jira/browse/AMQ-9597
> Project: ActiveMQ Classic
> Issue Type: Improvement
> Reporter: Matt Pavlovich
> Priority: Minor
>
> When zero bytes (or incomplete command) sent across the wire, a EOFException can be thrown from the DataInputStream. This may be caused by load balancers, health checks or security scanner tools that are inspecting the up/down of the port, but are not sending an wireformat data across the socket.
> {noformat}
> 024-10-18 14:23:07,844 [ActiveMQ Transport:
> tcp:///127.0.0.1:61616@44966][FailoverTransport:283]
> WARN org.apache.activemq.transport.failover.FailoverTransport - Transport
> (tcp://127.0.0.1:61616) failed, not attempting to automatically reconnect
> java.io.EOFException: null
> at
> java.base/java.io.DataInputStream.readFully(DataInputStream.java:210)
> at
> java.base/java.io.DataInputStream.readInt(DataInputStream.java:385)
> at
> org.apache.activemq.openwire.OpenWireFormat.unmarshal(OpenWireFormat.java:280)
> at
> org.apache.activemq.transport.tcp.TcpTransport.readCommand(TcpTransport.java:240)
> at
> org.apache.activemq.transport.tcp.TcpTransport.doRun(TcpTransport.java:232)
> at
> org.apache.activemq.transport.tcp.TcpTransport.run(TcpTransport.java:215)
> at java.base/java.lang.Thread.run(Thread.java:1583)
> {noformat}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@activemq.apache.org
For additional commands, e-mail: issues-help@activemq.apache.org
For further information, visit: https://activemq.apache.org/contact