-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Own implementation of
rd_kafka_flush()
Modifications: * `KafkaClient`: add new property `outgoingQueueSize` * `KafkaProducer.StateMachine`: add new state `.flushing` * `KafkaProducer.shutdownGracefully()`: * make non-async * remove invocation to `rd_kafka_flush` * set state to `KafkaProducer.StateMachine.State` to `.flushing` * `KafkaProducer` poll loop: * poll as long as `outgoingQueueSize` is > 0 to send out any enqueued `KafkaProducerMessage`s and serve any enqueued callbacks * `KafkaProducerTests`: add test asserting that the `librdkafka` `outq` is still being served after `KafkaProducer.shutdownGracefully` has been invoked as long as there are enqueued items
- Loading branch information
1 parent
387fc03
commit dd9ea2f
Showing
5 changed files
with
88 additions
and
77 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