Skip to content

Commit

Permalink
chore(deps): Bump rdkafka from 0.35.0 to 0.37.0 (#21929)
Browse files Browse the repository at this point in the history
* chore(deps): Bump rdkafka from 0.35.0 to 0.37.0

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] <[email protected]>

* chore(deps): Bump rdkafka from 0.35.0 to 0.37.0 (#22023)

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] <[email protected]>
Signed-off-by: Scott Miller <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

---------

Signed-off-by: dependabot[bot] <[email protected]>
Signed-off-by: Scott Miller <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Scott Miller <[email protected]>
  • Loading branch information
dependabot[bot] and sam6258 authored Dec 12, 2024
1 parent 70837f3 commit 3a89c8e
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 34 deletions.
31 changes: 5 additions & 26 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -350,7 +350,7 @@ postgres-openssl = { version = "0.5.0", default-features = false, features = ["r
pulsar = { version = "6.3.0", default-features = false, features = ["tokio-runtime", "auth-oauth2", "flate2", "lz4", "snap", "zstd"], optional = true }
rand.workspace = true
rand_distr = { version = "0.4.3", default-features = false }
rdkafka = { version = "0.35.0", default-features = false, features = ["curl-static", "tokio", "libz", "ssl", "zstd"], optional = true }
rdkafka = { version = "0.37.0", default-features = false, features = ["curl-static", "tokio", "libz", "ssl", "zstd"], optional = true }
redis = { version = "0.24.0", default-features = false, features = ["connection-manager", "tokio-comp", "tokio-native-tls-comp"], optional = true }
regex = { version = "1.11.1", default-features = false, features = ["std", "perf"] }
roaring = { version = "0.10.7", default-features = false, features = ["std"], optional = true }
Expand Down
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 3a89c8e

Please sign in to comment.