You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
consumer: fix consumeNum to respect the consume timeout
Steps to reproduce:
* configure consumer with setDefaultConsumeTimeout(1000)
* produce 1 message every 500ms
* call consumer.consume(128, cb)
Actual outcome:
* consume returns 128 messages after 64 seconds
Expected outcome:
* consumer returns ~2 messages after 1 second
KafkaConsumerConsumeNum call underlaying c++ m_consumer->Consume
in cycle until
* either the accumulated batch is full
* or the call to c++ m_consumer->Consume times out on the total timeout
KafkaConsumerConsumeNum must enforce its timeout
over all m_consumer->Consume invocations altogether.
0 commit comments