You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@zookeeper.apache.org by "Mate Szalay-Beko (Jira)" <ji...@apache.org> on 2021/02/24 11:01:00 UTC

[jira] [Commented] (ZOOKEEPER-4221) Improve the error message when message goes above jute.maxbufer size

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

Mate Szalay-Beko commented on ZOOKEEPER-4221:
---------------------------------------------

the Len error not necessarily means jute.maxbuffer size problem. If ZooKeeper gets a "malformed" message (not even a jute message), then the first few bytes (encoding "len") can be anything. Maybe an error message like this one would make more sense:

"Len error, the first few bytes of the message contains invalid value: 1048648. This is either a message too large to process (see parameter jute.maxbuffer.size) or this is a malformed message."

> Improve the error message when message goes above jute.maxbufer size
> --------------------------------------------------------------------
>
>                 Key: ZOOKEEPER-4221
>                 URL: https://issues.apache.org/jira/browse/ZOOKEEPER-4221
>             Project: ZooKeeper
>          Issue Type: Improvement
>          Components: server
>    Affects Versions: 3.5.5
>            Reporter: Mathieu Marie
>            Priority: Minor
>
> When I hit the jute.maxbuffer size, I get a pretty bland error message that doesn't help me much.
> {quote}java.io.IOException: Len error 1048648
> {quote}
> It would be helpful to get more information about the command that produced the error, the client that executed the command, etc...
>  



--
This message was sent by Atlassian Jira
(v8.3.4#803005)