-
Notifications
You must be signed in to change notification settings - Fork 160
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
consumer Exception zlib error #453
Comments
我们也碰到这个问题了,请问下这个问题修复了没? |
I also met this problem, and even after updated my zlib version, this problem still remains. |
我在测试C++接口时也遇到了同样的问题,在接口中增加日志排查后发现是调用接口的用法存在问题: 错误代码示例: rocketmq::MQMessage msg(topic, tag, "");
for (unsigned i = 0; i < send_num; ++i) {
try {
char *body = new char[send_size];
msg.setBody(body, send_size); // msg被重新设置内容,但是标记不变
rocketmq::SendResult sendResult = producer->send(msg);
printf("msg size[%d]\n", msg.getBody().length());
delete []body;
} catch (rocketmq::MQException &e) {
printf("send error[%d][%s]", e.GetError(), e.what());
return -1;
}
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I use python client (https://github.com/apache/rocketmq-client-python) to call rocketmq-client-cpp ,and when I consumer some messages,I get that:
terminate called ater throwing an instance of 'boost::exception_detail::clone_impl<boost::exception_detail::error_info_injectorboost:iostreams::zlib_error>'
what(): zlib error
my env:
os rhel7.9
kernle:3.10.0-1160
clinet: rocketmq-client-cpp-2.1.0 rocketmq-client-cpp-2.0.0 (Both versions have this issue)
The text was updated successfully, but these errors were encountered: