-
Notifications
You must be signed in to change notification settings - Fork 3.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add flag to rd_kafka_queue which denotes if it contains fetched msgs (#…
…4256) Add failing tests An issue in v2.1.0 was fixed in which max.poll.interval.ms was not honored, because it was reset on any queue poll, not just consumer poll. It was changed it so that only certain rdkafka.h functions which were polling would reset the timer. However, librdkafka exposes a method rd_kafka_queue_get_consumer, which returns the consumer queue, and the application can poll this queue for events rather than calling consume poll. There is no way to distinguish polls to this queue and an arbitrary queue, and it won't reset the timer. So, a new flag is maintained inside the queue denoting if it might contain fetched messages, or not. It deals with forwarding of queues, so if a queue which receives fetched messages is forwarded multiple times, calling poll on the forwardee will also reset the timer. --------- Co-authored-by: Emanuele Sabellico <[email protected]>
- Loading branch information
Showing
8 changed files
with
201 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters