[Bug] std::bad_function_call
was thrown on Reader::ReadNext
on a non-persistent topic
#455
Open
2 tasks done
Search before asking
Version
Pulsar 3.3.2 running in docker, same issue also happen when I tried to connect to StreamNative cloud serivce. But I think this issue has notthing to do with the pulser server side. And I am using pulsar-client-cpp 3.5.1.
Minimal reproduce step
Reader
on a non-persistent topic.ReadNext
on the Reader instance to read messages.What did you expect to see?
Messages are successfully read by the client.
What did you see instead?
A portion of the exception backtrace:
Anything else?
I think the issue is that,
AckGroupingTracker::addAcknowledgeList
does checkcallback
before calling it: https://github.com/apache/pulsar-client-cpp/blob/main/lib/AckGroupingTracker.h#L81-L83. And inReaderImpl::acknowledgeIfNecessary
it passes theemptyCallback
caused the issue: https://github.com/apache/pulsar-client-cpp/blob/main/lib/ReaderImpl.cc#L155Are you willing to submit a PR?
The text was updated successfully, but these errors were encountered: