Skip to content

Commit

Permalink
chore(deps): Bump rdkafka from 0.35.0 to 0.37.0 (#22023)
Browse files Browse the repository at this point in the history
Bumps [rdkafka](https://github.com/fede1024/rust-rdkafka) from 0.35.0 to 0.37.0.
- [Changelog](https://github.com/fede1024/rust-rdkafka/blob/master/changelog.md)
- [Commits](fede1024/rust-rdkafka@v0.35.0...v0.37.0)

---
updated-dependencies:
- dependency-name: rdkafka
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Signed-off-by: Scott Miller <smiller1@coreweave.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
  • Loading branch information
sam6258 and dependabot[bot] authored Dec 12, 2024
1 parent b30cd43 commit 85e90b8
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions src/sources/kafka.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ use futures::{Stream, StreamExt};
use futures_util::future::OptionFuture;
use rdkafka::{
consumer::{
stream_consumer::StreamPartitionQueue, CommitMode, Consumer, ConsumerContext, Rebalance,
StreamConsumer,
stream_consumer::StreamPartitionQueue, BaseConsumer, CommitMode, Consumer, ConsumerContext,
Rebalance, StreamConsumer,
},
error::KafkaError,
message::{BorrowedMessage, Headers as _, Message},
Expand Down Expand Up @@ -1369,15 +1369,11 @@ impl ClientContext for KafkaSourceContext {
}

impl ConsumerContext for KafkaSourceContext {
fn pre_rebalance(&self, rebalance: &Rebalance) {
fn pre_rebalance(&self, _base_consumer: &BaseConsumer<Self>, rebalance: &Rebalance) {
match rebalance {
Rebalance::Assign(tpl) => self.consume_partitions(tpl),

Rebalance::Revoke(tpl) => {
// TODO workaround for https://github.com/fede1024/rust-rdkafka/issues/681
if tpl.capacity() == 0 {
return;
}
self.revoke_partitions(tpl);
self.commit_consumer_state();
}
Expand Down

0 comments on commit 85e90b8

Please sign in to comment.