Peter Gyori created ZOOKEEPER-5019:
--------------------------------------
Summary: Improve the error message when the message sent by a
client is malformed
Key: ZOOKEEPER-5019
URL: https://issues.apache.org/jira/browse/ZOOKEEPER-5019
Project: ZooKeeper
Issue Type: Improvement
Components: server
Affects Versions: 3.9.4
Reporter: Peter Gyori
When a client sends a malformed message to Zookeeper, the following message is
shown in the log:
_"Len error. A message from <address> with advertised length of <length> is
either a malformed message or too large to process (length is greater than
jute.maxbuffer=<buffersize>)"_
When the client is using TLS but Zookeeper is not, the above message is shown.
To make it easier to recognize such a case, I recommend extending the error
message with the possible root cause:
_"Len error. A message from <address> with advertised length of <length> is
either a malformed message or too large to process (length is greater than
jute.maxbuffer=<buffersize>). {*}Note: If the length appears unusually large,
this may be a TLS/SSL connection attempt on a non-secure port.{*}"_
The "magic number" that appears as the length with an attempted TLS handshake
is 369296129.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)