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

Matt Pavlovich edited comment on AMQ-9597 at 10/21/24 3:30 PM:
---------------------------------------------------------------

I'm thinking a counter to track occurences on the transport connector.

NOTE: The stacktrace can be disabled by adding the option: 

{noformat}
displayStackTrace=false
{noformat}


was (Author: mattrpav):
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: [email protected]
For additional commands, e-mail: [email protected]
For further information, visit: https://activemq.apache.org/contact


Reply via email to