zookeeper-cpp
ZooKeeper Client for C++
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Groups
zk::marshalling_error Class Referencefinal

An error occurred while marshalling data. More...

#include <zk/error.hpp>

+ Inheritance diagram for zk::marshalling_error:

Additional Inherited Members

- Public Member Functions inherited from zk::transport_error
 transport_error (error_code code, const std::string &description)
 
- Public Member Functions inherited from zk::error
 error (error_code code, const std::string &description)
 
error_code code () const
 The code representation of this error. More...
 

Detailed Description

An error occurred while marshalling data.

The most common cause of this is exceeding the Jute buffer size – meaning the transaction was too large (check the server logs for messages containing "Unreasonable length"). If that is the case, the solution is to change jute.maxbuffer on all servers (see the ZooKeeper Administrator's Guide for more information and a stern warning). Another possible cause is the system running out of memory, but due to overcommit, OOM issues rarely manifest so cleanly.

Definition at line 156 of file error.hpp.


The documentation for this class was generated from the following files: