Skip to content

Commit a67e30d

Browse files
authored
bump librdkafka to 2.3.0 (#349)
1 parent fd5a1c5 commit a67e30d

File tree

3 files changed

+9
-5
lines changed

3 files changed

+9
-5
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Rdkafka Changelog
22

3+
## 0.15.0 (Unreleased)
4+
- [Enhancement] Bump librdkafka to 2.3.0 (mensfeld)
5+
- [Enhancement] Increase the `#lag` and `#query_watermark_offsets` default timeouts from 100ms to 1000ms. This will compensate for network glitches and remote clusters operations (mensfeld)
6+
37
## 0.14.0 (2023-11-21)
48
- [Enhancement] Add `raise_response_error` flag to the `Rdkafka::AbstractHandle`.
59
- [Enhancement] Allow for setting `statistics_callback` as nil to reset predefined settings configured by a different gem (mensfeld)

lib/rdkafka/consumer.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -289,7 +289,7 @@ def position(list=nil)
289289
# @param timeout_ms [Integer] The timeout for querying the broker
290290
# @return [Integer] The low and high watermark
291291
# @raise [RdkafkaError] When querying the broker fails.
292-
def query_watermark_offsets(topic, partition, timeout_ms=200)
292+
def query_watermark_offsets(topic, partition, timeout_ms=1000)
293293
closed_consumer_check(__method__)
294294

295295
low = FFI::MemoryPointer.new(:int64, 1)
@@ -325,7 +325,7 @@ def query_watermark_offsets(topic, partition, timeout_ms=200)
325325
# @return [Hash<String, Hash<Integer, Integer>>] A hash containing all topics with the lag
326326
# per partition
327327
# @raise [RdkafkaError] When querying the broker fails.
328-
def lag(topic_partition_list, watermark_timeout_ms=100)
328+
def lag(topic_partition_list, watermark_timeout_ms=1000)
329329
out = {}
330330

331331
topic_partition_list.to_h.each do |topic, partitions|

lib/rdkafka/version.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# frozen_string_literal: true
22

33
module Rdkafka
4-
VERSION = "0.14.0"
5-
LIBRDKAFKA_VERSION = "2.2.0"
6-
LIBRDKAFKA_SOURCE_SHA256 = "af9a820cbecbc64115629471df7c7cecd40403b6c34bfdbb9223152677a47226"
4+
VERSION = "0.15.0"
5+
LIBRDKAFKA_VERSION = "2.3.0"
6+
LIBRDKAFKA_SOURCE_SHA256 = "2d49c35c77eeb3d42fa61c43757fcbb6a206daa560247154e60642bcdcc14d12"
77
end

0 commit comments

Comments
 (0)