karafka-rdkafka 0.17.3 → 0.32.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +338 -3
- data/README.md +65 -143
- data/Rakefile +21 -23
- data/bin/verify_kafka_warnings +41 -0
- data/dist/librdkafka-2.16.0.tar.gz +0 -0
- data/dist/patches/rdkafka_cgrp_late_assignment_after_leave.patch +33 -0
- data/dist/patches/rdkafka_global_init.patch +15 -0
- data/dist/patches/rdkafka_offset_fetch_no_cgrp.patch +21 -0
- data/dist/patches/rdkafka_retry_msgq_backoff_overflow.patch +30 -0
- data/dist/patches/rdkafka_share_async_ack_sort.patch +18 -0
- data/dist/patches/rdkafka_share_unsubscribe_release.patch +567 -0
- data/dist/patches/rdkafka_stats_filter.patch +263 -0
- data/docker-compose-ssl.yml +49 -0
- data/docker-compose.yml +14 -4
- data/ext/Rakefile +31 -31
- data/karafka-rdkafka.gemspec +71 -31
- data/lib/rdkafka/abstract_handle.rb +86 -20
- data/lib/rdkafka/admin/acl_binding_result.rb +9 -21
- data/lib/rdkafka/admin/alter_consumer_group_offsets_handle.rb +31 -0
- data/lib/rdkafka/admin/alter_consumer_group_offsets_report.rb +50 -0
- data/lib/rdkafka/admin/config_binding_result.rb +9 -1
- data/lib/rdkafka/admin/config_resource_binding_result.rb +1 -0
- data/lib/rdkafka/admin/create_acl_handle.rb +6 -9
- data/lib/rdkafka/admin/create_acl_report.rb +6 -6
- data/lib/rdkafka/admin/create_partitions_handle.rb +2 -18
- data/lib/rdkafka/admin/create_partitions_report.rb +1 -0
- data/lib/rdkafka/admin/create_topic_handle.rb +2 -18
- data/lib/rdkafka/admin/create_topic_report.rb +5 -6
- data/lib/rdkafka/admin/delete_acl_handle.rb +6 -11
- data/lib/rdkafka/admin/delete_acl_report.rb +5 -3
- data/lib/rdkafka/admin/delete_consumer_group_offsets_handle.rb +31 -0
- data/lib/rdkafka/admin/delete_consumer_group_offsets_report.rb +50 -0
- data/lib/rdkafka/admin/delete_groups_handle.rb +7 -10
- data/lib/rdkafka/admin/delete_groups_report.rb +5 -6
- data/lib/rdkafka/admin/delete_records_handle.rb +31 -0
- data/lib/rdkafka/admin/delete_records_report.rb +25 -0
- data/lib/rdkafka/admin/delete_topic_handle.rb +2 -18
- data/lib/rdkafka/admin/delete_topic_report.rb +5 -6
- data/lib/rdkafka/admin/describe_acl_handle.rb +6 -11
- data/lib/rdkafka/admin/describe_acl_report.rb +7 -4
- data/lib/rdkafka/admin/describe_cluster_handle.rb +31 -0
- data/lib/rdkafka/admin/describe_cluster_report.rb +51 -0
- data/lib/rdkafka/admin/describe_configs_handle.rb +5 -13
- data/lib/rdkafka/admin/describe_configs_report.rb +11 -6
- data/lib/rdkafka/admin/describe_consumer_groups_handle.rb +31 -0
- data/lib/rdkafka/admin/describe_consumer_groups_report.rb +151 -0
- data/lib/rdkafka/admin/describe_result_parsing.rb +47 -0
- data/lib/rdkafka/admin/describe_topics_handle.rb +31 -0
- data/lib/rdkafka/admin/describe_topics_report.rb +118 -0
- data/lib/rdkafka/admin/incremental_alter_configs_handle.rb +5 -13
- data/lib/rdkafka/admin/incremental_alter_configs_report.rb +11 -6
- data/lib/rdkafka/admin/list_consumer_group_offsets_handle.rb +31 -0
- data/lib/rdkafka/admin/list_consumer_group_offsets_report.rb +52 -0
- data/lib/rdkafka/admin/list_consumer_groups_handle.rb +31 -0
- data/lib/rdkafka/admin/list_consumer_groups_report.rb +83 -0
- data/lib/rdkafka/admin/list_offsets_handle.rb +25 -0
- data/lib/rdkafka/admin/list_offsets_report.rb +54 -0
- data/lib/rdkafka/admin.rb +1055 -207
- data/lib/rdkafka/bindings/admin/acls.rb +85 -0
- data/lib/rdkafka/bindings/admin/configs.rb +48 -0
- data/lib/rdkafka/bindings/admin/list_offsets.rb +26 -0
- data/lib/rdkafka/bindings/admin.rb +211 -0
- data/lib/rdkafka/bindings/callbacks.rb +155 -0
- data/lib/rdkafka/bindings/configuration.rb +50 -0
- data/lib/rdkafka/bindings/consumer.rb +125 -0
- data/lib/rdkafka/bindings/errors.rb +17 -0
- data/lib/rdkafka/bindings/handle.rb +16 -0
- data/lib/rdkafka/bindings/messages.rb +28 -0
- data/lib/rdkafka/bindings/metadata.rb +17 -0
- data/lib/rdkafka/bindings/polling.rb +17 -0
- data/lib/rdkafka/bindings/producer.rb +82 -0
- data/lib/rdkafka/bindings/share_consumer.rb +67 -0
- data/lib/rdkafka/bindings/structs.rb +62 -0
- data/lib/rdkafka/bindings.rb +69 -512
- data/lib/rdkafka/callbacks/alter_consumer_group_offsets_handler.rb +65 -0
- data/lib/rdkafka/callbacks/base_handler.rb +62 -0
- data/lib/rdkafka/callbacks/create_acl_handler.rb +37 -0
- data/lib/rdkafka/callbacks/create_partitions_handler.rb +37 -0
- data/lib/rdkafka/callbacks/create_topic_handler.rb +37 -0
- data/lib/rdkafka/callbacks/delete_acl_handler.rb +42 -0
- data/lib/rdkafka/callbacks/delete_consumer_group_offsets_handler.rb +65 -0
- data/lib/rdkafka/callbacks/delete_groups_handler.rb +37 -0
- data/lib/rdkafka/callbacks/delete_records_handler.rb +38 -0
- data/lib/rdkafka/callbacks/delete_topic_handler.rb +37 -0
- data/lib/rdkafka/callbacks/describe_acl_handler.rb +35 -0
- data/lib/rdkafka/callbacks/describe_cluster_handler.rb +36 -0
- data/lib/rdkafka/callbacks/describe_configs_handler.rb +42 -0
- data/lib/rdkafka/callbacks/describe_consumer_groups_handler.rb +36 -0
- data/lib/rdkafka/callbacks/describe_topics_handler.rb +36 -0
- data/lib/rdkafka/callbacks/incremental_alter_configs_handler.rb +42 -0
- data/lib/rdkafka/callbacks/list_consumer_group_offsets_handler.rb +62 -0
- data/lib/rdkafka/callbacks/list_consumer_groups_handler.rb +39 -0
- data/lib/rdkafka/callbacks/list_offsets_handler.rb +42 -0
- data/lib/rdkafka/callbacks.rb +157 -234
- data/lib/rdkafka/clients.rb +81 -0
- data/lib/rdkafka/config.rb +433 -116
- data/lib/rdkafka/consumer/allocator.rb +36 -0
- data/lib/rdkafka/consumer/headers.rb +38 -10
- data/lib/rdkafka/consumer/message.rb +18 -20
- data/lib/rdkafka/consumer/partition.rb +10 -5
- data/lib/rdkafka/consumer/topic_partition_list.rb +76 -62
- data/lib/rdkafka/consumer.rb +727 -189
- data/lib/rdkafka/defaults.rb +134 -0
- data/lib/rdkafka/error.rb +167 -35
- data/lib/rdkafka/helpers/list_offsets.rb +127 -0
- data/lib/rdkafka/helpers/message_build_error.rb +30 -0
- data/lib/rdkafka/helpers/metadata.rb +29 -0
- data/lib/rdkafka/helpers/oauth.rb +71 -16
- data/lib/rdkafka/helpers/time.rb +5 -0
- data/lib/rdkafka/metadata.rb +126 -37
- data/lib/rdkafka/native_kafka.rb +244 -45
- data/lib/rdkafka/producer/delivery_handle.rb +23 -22
- data/lib/rdkafka/producer/delivery_report.rb +59 -4
- data/lib/rdkafka/producer/partition_count_cache.rb +258 -0
- data/lib/rdkafka/producer/testing.rb +52 -0
- data/lib/rdkafka/producer.rb +448 -161
- data/lib/rdkafka/share_consumer/message.rb +40 -0
- data/lib/rdkafka/share_consumer.rb +661 -0
- data/lib/rdkafka/version.rb +6 -3
- data/lib/rdkafka.rb +52 -1
- data/package-lock.json +331 -0
- data/package.json +9 -0
- data/renovate.json +137 -2
- metadata +95 -174
- checksums.yaml.gz.sig +0 -0
- data/.github/FUNDING.yml +0 -1
- data/.github/workflows/ci.yml +0 -55
- data/.gitignore +0 -14
- data/.rspec +0 -2
- data/.ruby-gemset +0 -1
- data/.ruby-version +0 -1
- data/.yardopts +0 -2
- data/Gemfile +0 -5
- data/Guardfile +0 -19
- data/certs/cert_chain.pem +0 -26
- data/dist/librdkafka_2.5.0.tar.gz +0 -0
- data/dist/patches/rdkafka_sticky_assignor.c.patch +0 -26
- data/ext/README.md +0 -19
- data/spec/rdkafka/abstract_handle_spec.rb +0 -117
- data/spec/rdkafka/admin/create_acl_handle_spec.rb +0 -56
- data/spec/rdkafka/admin/create_acl_report_spec.rb +0 -18
- data/spec/rdkafka/admin/create_topic_handle_spec.rb +0 -54
- data/spec/rdkafka/admin/create_topic_report_spec.rb +0 -16
- data/spec/rdkafka/admin/delete_acl_handle_spec.rb +0 -85
- data/spec/rdkafka/admin/delete_acl_report_spec.rb +0 -72
- data/spec/rdkafka/admin/delete_topic_handle_spec.rb +0 -54
- data/spec/rdkafka/admin/delete_topic_report_spec.rb +0 -16
- data/spec/rdkafka/admin/describe_acl_handle_spec.rb +0 -85
- data/spec/rdkafka/admin/describe_acl_report_spec.rb +0 -73
- data/spec/rdkafka/admin_spec.rb +0 -754
- data/spec/rdkafka/bindings_spec.rb +0 -232
- data/spec/rdkafka/callbacks_spec.rb +0 -20
- data/spec/rdkafka/config_spec.rb +0 -256
- data/spec/rdkafka/consumer/headers_spec.rb +0 -57
- data/spec/rdkafka/consumer/message_spec.rb +0 -139
- data/spec/rdkafka/consumer/partition_spec.rb +0 -57
- data/spec/rdkafka/consumer/topic_partition_list_spec.rb +0 -242
- data/spec/rdkafka/consumer_spec.rb +0 -1505
- data/spec/rdkafka/error_spec.rb +0 -95
- data/spec/rdkafka/metadata_spec.rb +0 -79
- data/spec/rdkafka/native_kafka_spec.rb +0 -130
- data/spec/rdkafka/producer/delivery_handle_spec.rb +0 -60
- data/spec/rdkafka/producer/delivery_report_spec.rb +0 -25
- data/spec/rdkafka/producer_spec.rb +0 -1005
- data/spec/spec_helper.rb +0 -172
- data.tar.gz.sig +0 -0
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 3fe78941ad21e010b115e0449447e0b166b789200ffe4229d78d7b68b7ff8379
|
|
4
|
+
data.tar.gz: 6eac48d75604ba9e6b9e7edd09a9e7f26f4c9af4a8b12e9974e0fb4dc8d90f56
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 020b57e399f96a3e07aee31170aebd0d12f46ce776c6665da72ffe2563aae79a195dafd1cc405e029d3397318b77345e544dc52a6c282b0bee3d2df842af35e9
|
|
7
|
+
data.tar.gz: 5b756387b8c0aa428dba6f3b78d293a5535c6d4751219e486ee924095a90ed57b861d9841aaa605f228c74abe8b8977d38b0a86b9c728600285b147a8b6f91c6
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,340 @@
|
|
|
1
1
|
# Rdkafka Changelog
|
|
2
2
|
|
|
3
|
+
## 0.32.2 (2026-11-18)
|
|
4
|
+
- [Maintenance] Release the code of 0.32.1 again, with Sigstore attestations. 0.32.1 was published without them: signing failed in the release workflows (the signer does not work with json 3.x, the default of Ruby 4.0) and the attestation patch then pushed the gems unsigned. There are no code changes; use 0.32.2 rather than 0.32.1 for the attested gems.
|
|
5
|
+
- [Maintenance] Sign each gem with `sigstore-cli` and push it with `gem push --attestation` (`.github/release/push_gem.sh`, used by every push workflow), so a failed signing stops the release instead of publishing the gem without an attestation.
|
|
6
|
+
- [Maintenance] Add the `Sigstore Check` workflow: nightly, and on pull requests that change the release scripts or push workflows, it builds the gem, signs it like a release and verifies the attestation, without pushing.
|
|
7
|
+
|
|
8
|
+
## 0.32.1 (2026-11-18)
|
|
9
|
+
- [Change] Take the partition list of `Admin#list_consumer_group_offsets` as the `topic_partition_list:` keyword instead of a positional argument. Its only caller is karafka's admin API, which passes it as a keyword from karafka 2.6.2 (released karafka does not call it).
|
|
10
|
+
- [Change] Return one shared frozen empty array from `Consumer#poll_batch` and `#poll_batch_nb` when no messages arrive, so an empty poll allocates nothing. Code that mutates an empty result now raises `FrozenError`; no Karafka ecosystem gem calls these methods.
|
|
11
|
+
- **[Feature]** Add `#source` and `#source_name` to `describe_configs` config entries and their synonyms, telling a value set on the topic from one inherited from the broker or a built-in default. Ported from rdkafka-ruby (#1120).
|
|
12
|
+
- [Enhancement] Allocate fewer objects per handle: delivery and admin handles share a fixed set of locks instead of creating their own `Mutex` and `ConditionVariable`. Ported from rdkafka-ruby (#1087).
|
|
13
|
+
- [Enhancement] Bump the bundled zlib to `1.4`. Ported from rdkafka-ruby (#1109).
|
|
14
|
+
- [Enhancement] Bump the bundled MIT Kerberos (krb5) to `1.22.3` for security fixes. Ported from rdkafka-ruby (#1119).
|
|
15
|
+
- [Enhancement] Build the bundled zlib with `-O2` in the glibc precompiled gems for faster gzip compression and decompression. Ported from rdkafka-ruby (#1112).
|
|
16
|
+
- [Enhancement] Raise `Rdkafka::Producer::PartitionCountError` from `Producer#partition_count` and `partition_key` produces when the partition count cannot be fetched. It names the topic, keeps the `RdkafkaError` code and has the original error as `cause`.
|
|
17
|
+
- **[Deprecation]** Rename `Producer::PartitionsCountCache`, `Producer.partitions_count_cache` / `.partitions_count_cache=` and `Defaults::PARTITIONS_COUNT_CACHE_TTL_MS` / `PARTITIONS_COUNT_CACHE_STALE_BACKOFF_MS` to their `partition_count` forms. The old names still work but will be removed in v1.0.0. The old methods warn; the old constants are plain aliases and do not warn. Ported from rdkafka-ruby (#1102).
|
|
18
|
+
- [Fix] Keep `close` from hanging forever after a thread using the client was killed (JRuby) or interrupted by `Thread#raise` or `Timeout` (all Rubies). Ported from rdkafka-ruby (#1082).
|
|
19
|
+
- [Fix] Keep `close` from hanging forever after a signal `trap` handler raised while the main thread used the client. Ported from rdkafka-ruby (#1100).
|
|
20
|
+
- [Fix] Keep the shared partition count cache consistent when many threads produce with `partition_key` or call `partition_count` at once. On JRuby it lost topics and raised `NoMethodError`. Ported from rdkafka-ruby (#1078).
|
|
21
|
+
- [Fix] Return `nil` from every `close` call when several threads close one consumer, producer or admin at once, instead of raising `ClosedInnerError` in the later callers. Ported from rdkafka-ruby (#1107).
|
|
22
|
+
- [Fix] Give the error of a message that fails to build (e.g. unreadable headers) its `topic`, `partition` and `offset` in `details` in `Consumer#poll`, `#poll_nb`, `#poll_nb_each`, `#poll_batch` and `#poll_batch_nb`, so the caller can seek back to it instead of losing it.
|
|
23
|
+
- [Fix] Give the error of a message that fails to build its `topic`, `partition` and `offset` in `details` in `ShareConsumer#poll` too, so in explicit acknowledgement mode the caller can acknowledge (release or reject) that record.
|
|
24
|
+
|
|
25
|
+
## 0.32.0 (2026-11-04)
|
|
26
|
+
- **[Feature]** Add `Config#consumer_offset_commit_listener`: its `#on_offsets_committed(error, list)` gets the result of every offset commit when the consumer polls or closes, so an async commit that the broker rejects reaches Ruby instead of only a `COMMITFAIL` log line. Ported from rdkafka-ruby (#1061).
|
|
27
|
+
- **[Feature]** Let the offset commit listener define `#on_offsets_commit_failed(error, list)`, called only for failed commits (not on success or `no_offset`).
|
|
28
|
+
- **[Feature]** Add `Admin#list_consumer_group_offsets` to read the committed offsets of any consumer group without joining it, with a `require_stable_offsets` option.
|
|
29
|
+
- **[Feature]** Add `validate_only:`, `operation_timeout_ms:` and `request_timeout_ms:` keyword options to `Admin#create_topic` and `#create_partitions`, and the two timeouts to `#delete_topic`. A `create_topic` topic config passed without braces keeps working. Ported from rdkafka-ruby (#1092).
|
|
30
|
+
- [Enhancement] Reduce object shape variations of the admin report classes to one shape per class.
|
|
31
|
+
- [Enhancement] Keep `partition_key` produces working during a cluster outage once the topic partition count is known, instead of raising. Ported from rdkafka-ruby (#1039).
|
|
32
|
+
- [Enhancement] Add `Rdkafka::Config.partition_count_cache_ttl_ms=` to set how long `partition_key` produces reuse a cached partition count (default 30 seconds).
|
|
33
|
+
- [Enhancement] Make `Producer#produce` use about 13% less CPU per call. Ported from rdkafka-ruby (#1064).
|
|
34
|
+
- [Enhancement] Allocate fewer objects per delivered message: delivery callback reports reuse the topic String given to `produce`. Ported from rdkafka-ruby (#1066).
|
|
35
|
+
- [Change] Build the precompiled `x86_64-linux-gnu` and `aarch64-linux-gnu` libraries in an Ubuntu 22.04 container to keep the glibc 2.34 floor. Ported from rdkafka-ruby (#1029).
|
|
36
|
+
- [Change] Depend on `mini_portile2` and `rake` only in the source gem, as only it compiles librdkafka. Apps that got `rake` only through this gem must add it to their Gemfile.
|
|
37
|
+
- [Change] Remove the unused `Rdkafka::Defaults::NATIVE_KAFKA_SYNCHRONIZE_SLEEP_INTERVAL_MS`. Ported from rdkafka-ruby (#1055).
|
|
38
|
+
- [Maintenance] Fix a use-after-free in the `client_shutdown_dlclose` integration test that made it crash intermittently after its own unmap.
|
|
39
|
+
- [Maintenance] Stabilize the flaky `Consumer#seek` and `#seek_by` "works when a partition is paused" specs on loaded CI runners.
|
|
40
|
+
- [Maintenance] Stop the `client_shutdown_dlclose` integration test from failing with `Errno::ESRCH`.
|
|
41
|
+
- [Maintenance] Stabilize the flaky `Consumer` "long running consumption" spec.
|
|
42
|
+
- [Maintenance] Drop `pry` from the development bundle and stop requiring it in the spec helper.
|
|
43
|
+
- [Maintenance] Stabilize the flaky `admin_describe_topics` integration test.
|
|
44
|
+
- [Maintenance] Name positional String topic parameters `topic_name`. Callers are not affected. Ported from rdkafka-ruby (#1052).
|
|
45
|
+
- [Maintenance] Name the positional String topic parameters of `Producer::PartitionsCountCache` `topic_name`. Callers are not affected.
|
|
46
|
+
- [Maintenance] Cover with integration tests that coordinator errors on group offset requests do not crash the admin client or a consumer without `group.id`. Ported from rdkafka-ruby (#1044).
|
|
47
|
+
- [Maintenance] Skip the bindings signature parity spec on JRuby, whose FFI does not expose function signatures. Ported from rdkafka-ruby (#1046).
|
|
48
|
+
- [Maintenance] Match the FFI pointer expectations in the consumer specs by address, so they pass on JRuby. Ported from rdkafka-ruby (#1047).
|
|
49
|
+
- [Maintenance] Run the `client_shutdown_dlclose` integration test on JRuby on Linux. Ported from rdkafka-ruby (#1049).
|
|
50
|
+
- [Maintenance] Check the native call balance instead of RSS in the leak integration specs on JRuby. Ported from rdkafka-ruby (#1050).
|
|
51
|
+
- [Maintenance] Give the `Consumer#lag` spec a 30 s list offsets wait.
|
|
52
|
+
- [Maintenance] Give the share group offset reset in the `ShareConsumer` specs a 30 s wait and always close its admin.
|
|
53
|
+
- [Maintenance] Define `Consumer.finalizer` and `Consumer.report_close_error` in a `class << self` block. Callers are not affected. Ported from rdkafka-ruby (#1068).
|
|
54
|
+
- [Maintenance] Wait 30 s for the `before(:suite)` topic creates. Ported from rdkafka-ruby (#1065).
|
|
55
|
+
- [Maintenance] Run the concurrent first produce checks on JRuby, now that `close` no longer hangs there after concurrent produces. Ported from rdkafka-ruby (#1083).
|
|
56
|
+
- [Maintenance] Create the topics of the producer `timestamp` specs with `retention.ms: -1`, so broker retention no longer deletes their messages. Ported from rdkafka-ruby (#1077).
|
|
57
|
+
- [Maintenance] Time out the SSL spec step of the Ubuntu aarch64 complementary CI workflow after 25 minutes. Ported from rdkafka-ruby (#1086).
|
|
58
|
+
- [Maintenance] Fix the YARD notes of `events_poll_nb_each` and `Consumer#poll_nb_each`: they do not hold a lock while they loop. Ported from rdkafka-ruby (#1089).
|
|
59
|
+
- [Maintenance] Stop the fake SSL servers in integration specs without `Thread#kill`. Ported from rdkafka-ruby (#1059).
|
|
60
|
+
- [Fix] Stop `Consumer#store_offset` and other calls that pass partition metadata from raising `NoMethodError` on JRuby. Ported from rdkafka-ruby (#1045).
|
|
61
|
+
- [Fix] Pass the error buffer size to librdkafka as `size_t` when setting config options and creating clients.
|
|
62
|
+
- [Fix] Raise `Rdkafka::LibraryLoadError` with the glibc upgrade hint instead of `NameError` when the precompiled librdkafka needs a newer glibc. Ported from rdkafka-ruby (#1031).
|
|
63
|
+
- [Fix] Report a failed consumer close (e.g. of a fatally-errored consumer) to `Rdkafka::Config.error_callback` instead of dropping it. `Consumer#close` still does not raise.
|
|
64
|
+
- [Fix] Stop the statistics, error and OAuth token refresh callbacks from raising `NoMethodError` when another thread clears the global callback while they run. On JRuby this aborted the process from the polling thread. Ported from rdkafka-ruby (#1058).
|
|
65
|
+
- [Fix] Stop `ShareConsumer#close` from hanging forever when it runs while the first partition assignment waits for topic metadata, by patching the bundled librdkafka (confluentinc/librdkafka#5658).
|
|
66
|
+
- [Fix] Pass the `#oauthbearer_set_token` size arguments to librdkafka as `size_t`, so the token set error is no longer truncated at random on JRuby.
|
|
67
|
+
- [Fix] Pass the fatal error buffer size (used by `Producer#fatal_error` and the error callback) and the config resource array count to librdkafka as `size_t`.
|
|
68
|
+
- [Fix] Stop the producer from retrying a message without backoff after about 25 retries, by patching the bundled librdkafka (confluentinc/librdkafka#5646).
|
|
69
|
+
- [Fix] Stop the rebalance callback from raising `LocalJumpError` when called for a client whose opaque is already gone.
|
|
70
|
+
- [Fix] Create one topic handle per topic when many threads produce to a new topic at once. On JRuby this race leaked topic handles and could crash with a segfault; `produce` now raises `TopicHandleCreationError` instead of passing a missing handle to librdkafka. Ported from rdkafka-ruby (#1056).
|
|
71
|
+
- [Fix] Count a client's (and a share consumer's) operations in progress under one lock, so on JRuby `close` no longer hangs or destroys the client while another thread still uses it. Ported from rdkafka-ruby (#1055).
|
|
72
|
+
|
|
73
|
+
## 0.31.0 (2026-10-12)
|
|
74
|
+
- **[EOL]** Drop Ruby 3.2 support; require Ruby 3.3+.
|
|
75
|
+
- [Feature] Add `Admin#describe_cluster` to get the cluster id, controller and broker nodes (with racks) without a full metadata request. Ported from rdkafka-ruby (#1015).
|
|
76
|
+
- [Feature] Add `Admin#describe_topics` to get topic ids, partition leaders, replicas and per-topic errors. Both methods can also return the client's authorized operations. Ported from rdkafka-ruby (#1015).
|
|
77
|
+
- [Feature] Add `Admin#describe_consumer_groups` to read consumer groups' state, type, coordinator, authorized operations and members with their current and target assignments. Ported from rdkafka-ruby (#1016).
|
|
78
|
+
- [Feature] Add `status`, `latency` and `broker_id` to `Producer::DeliveryReport`, with `#persisted?`, `#possibly_persisted?` and `#not_persisted?`, so a failed delivery tells whether a retry may duplicate the message. Ported from rdkafka-ruby (#1019).
|
|
79
|
+
- [Enhancement] Bump librdkafka to `2.16.0` for OpenSSL and libcurl security fixes. Admin requests in flight on a decommissioned broker now fail with a retryable transport error. Ported from rdkafka-ruby (#1020).
|
|
80
|
+
- [Enhancement] Bump the bundled OpenSSL to `3.5.9` (LTS) for its security fixes. Ported from rdkafka-ruby (#1007).
|
|
81
|
+
- [Enhancement] Read each pointer field once in `Message#initialize`, saving 3 allocations per consumed message. Ported from rdkafka-ruby (#1026).
|
|
82
|
+
- [Change] Build the precompiled `aarch64-linux-musl` gem on Alpine `3.24` (was `3.23`), matching `x86_64-linux-musl`. Ported from rdkafka-ruby (#1012).
|
|
83
|
+
- [Change] Build the precompiled `macos_arm64` library on macOS 26 with the minimum macOS pinned to 14.0, instead of inheriting it from the build host. Ported from rdkafka-ruby (#1013).
|
|
84
|
+
- [Maintenance] Split `lib/rdkafka/bindings.rb` into per-area files under `lib/rdkafka/bindings/`. `Rdkafka::Bindings` is unchanged. Ported from rdkafka-ruby (#1022).
|
|
85
|
+
- [Maintenance] Stabilize a flaky partitions count cache spec. Ported from rdkafka-ruby (#1028).
|
|
86
|
+
- [Fix] Sort merged share-group async acknowledgements so the broker does not reject them with `invalid_request` (librdkafka patch).
|
|
87
|
+
- [Fix] Release share records acquired by an in-flight fetch on unsubscribe instead of keeping them locked (librdkafka patch). `ShareConsumer#unsubscribe` now closes the share sessions like `#close` and can wait up to `fetch.wait.max.ms`.
|
|
88
|
+
|
|
89
|
+
## 0.30.2 (2026-10-01)
|
|
90
|
+
- [Feature] Add `ShareConsumer#events_poll` (and `#events_poll_nb`) to service the statistics, error, log and OAuthBearer callbacks without acquiring records.
|
|
91
|
+
|
|
92
|
+
## 0.30.1 (2026-09-30)
|
|
93
|
+
- [Fix] Set `ShareConsumer#name` from the native handle at creation, so name-based callback routing (e.g. Karafka) no longer drops share-consumer statistics and errors.
|
|
94
|
+
|
|
95
|
+
## 0.30.0 (2026-09-25)
|
|
96
|
+
- [Feature] Add preview support for KIP-932 share groups ("Queues for Kafka") via `Rdkafka::ShareConsumer` (`Config#share_consumer`), with per-record acknowledgements (`:accept`, `:release`, `:reject`). Requires Apache Kafka 4.2.0+ with share groups enabled. Not production-ready.
|
|
97
|
+
- [Feature] Add `Admin#alter_consumer_group_offsets` and `Admin#delete_consumer_group_offsets` to set or clear a consumer group's committed offsets from the admin client. Ported from rdkafka-ruby (#983).
|
|
98
|
+
- [Enhancement] Use the error string librdkafka attaches to each error in `RdkafkaError.build_from_c`, for clearer error messages.
|
|
99
|
+
- [Enhancement] Refactor the `Helpers::OAuth` token handling so the share consumer reuses it instead of duplicating it.
|
|
100
|
+
- [Enhancement] Bump librdkafka to `2.15.1` for OpenSSL and libcurl security fixes. It changes how IPv6 addresses are formatted and validated against broker certificates.
|
|
101
|
+
- [Enhancement] Bump the bundled zlib to `1.3.2`.
|
|
102
|
+
- [Enhancement] Bump the bundled MIT Kerberos (krb5) to `1.22.2`. Ported from rdkafka-ruby (#979).
|
|
103
|
+
- [Enhancement] Add `Rdkafka::Config.partitioner_key_uses_bytesize` to hash partition keys by byte length, matching other Kafka clients for multibyte keys. Defaults to `false`. Ported from rdkafka-ruby (#985).
|
|
104
|
+
- [Maintenance] Stop the `share_consumer_multi_member` integration spec from failing on an at-least-once redelivery.
|
|
105
|
+
- [Maintenance] Apply the same at-least-once tolerance to the `share_consumer_explicit_ack` integration spec.
|
|
106
|
+
- [Maintenance] Add the `nofile` ulimit to the SSL CI broker so the share-consumer suite does not exhaust file descriptors.
|
|
107
|
+
- [Maintenance] Enable KIP-932 share groups on the macOS CI broker and bump its `CONFLUENT_VERSION` to `8.3.0`.
|
|
108
|
+
- [Maintenance] Add `share_consumer_implicit_ack` and `share_consumer_multi_topic` integration specs.
|
|
109
|
+
- [Maintenance] Stop the `statistics_unassigned_producer` integration spec from flaking on a metadata-propagation race.
|
|
110
|
+
- [Maintenance] Also stabilize the `statistics_unassigned_producer` integration spec against delivery wait timeouts.
|
|
111
|
+
- [Maintenance] Stabilize the `consumer_memberid_clusterid_leak` integration spec against RSS measurement noise on Ruby 4.0.
|
|
112
|
+
- [Maintenance] Derive the zlib `CHECKSUMS` entry from `ZLIB_VERSION`.
|
|
113
|
+
- [Maintenance] Drop the unused `dist/openssl-3.0.16.tar.gz` build cache.
|
|
114
|
+
- [Maintenance] Fix a use-after-free in the multi-item admin integration test that made it flaky on newer glibc. Ported from rdkafka-ruby (#991).
|
|
115
|
+
- [Maintenance] Stabilize consumer specs on slow CI runners. The assignment wait is tunable via `RDKAFKA_TEST_ASSIGNMENT_TIMEOUT`. Ported from rdkafka-ruby (#990).
|
|
116
|
+
- [Fix] Register share consumers in `Rdkafka::Clients` and destroy the native handle when `Config#share_consumer` fails part-way, so a share consumer is no longer missed by the `at_exit` shutdown hook.
|
|
117
|
+
- [Fix] Make `ShareConsumer#close` thread-safe: it now waits for in-flight operations (mirroring `NativeKafka`), preventing a double destroy when two threads race `close`.
|
|
118
|
+
- [Fix] Keep the `ShareConsumer` native handle and its GC finalizer when `close`/`destroy` report an error, so the client is no longer leaked and `close` stays retriable.
|
|
119
|
+
- [Fix] Prevent a use-after-free when an unclosed `ShareConsumer` is garbage collected.
|
|
120
|
+
- [Fix] Make `ShareConsumer` fork-aware (mirroring `NativeKafka`): it reports `closed?` in a forked child, which no longer segfaults on `close` or finalization.
|
|
121
|
+
- [Fix] Rescue `ClosedConsumerError` in `ShareConsumer#each` only around `poll`, so a `ClosedConsumerError` raised inside the block propagates instead of silently ending iteration. Like `#poll`, `#each` can also yield an `RdkafkaError` for a record that fails to build.
|
|
122
|
+
- [Fix] Raise `ArgumentError` for `ShareConsumer#subscribe` without topics, which librdkafka otherwise treats as an unsubscribe without error, silently dropping the subscription.
|
|
123
|
+
- [Fix] Set `ShareConsumer#name` from the OAuthBearer token refresh callback, so name-based OAuth callback routing works for share consumers.
|
|
124
|
+
- [Fix] Update `ext/build_common.sh` (precompiled builds) to librdkafka `2.15.0` and its tarball checksum; it still pinned `2.14.1`, whose tarball is no longer vendored.
|
|
125
|
+
- [Fix] Honor the `isolation_level:` argument to `Admin#list_offsets`, which was silently ignored. Ported from rdkafka-ruby (#983).
|
|
126
|
+
- [Fix] Return correct results for every item of a multi-item topic, partition, group or ACL admin request, not just the first. Ported from rdkafka-ruby (#987).
|
|
127
|
+
- [Note] Share consumers emit the regular consumer statistics through `statistics_callback`. librdkafka 2.15.0 has no share-specific metrics, so the `topics` section has no partition entries.
|
|
128
|
+
|
|
129
|
+
## 0.29.0 (2026-09-14)
|
|
130
|
+
- [Enhancement] Bump librdkafka to `2.15.0` (staying on `2.15.0` rather than `2.15.1` so users hitting a regression in `2.15.1` have a stable fallback).
|
|
131
|
+
|
|
132
|
+
## 0.28.2 (2026-09-12)
|
|
133
|
+
- [Maintenance] Bump the bundled OpenSSL used by the precompiled builds to `3.5.8` (LTS). Ported from rdkafka-ruby (#972, Scott Francis).
|
|
134
|
+
- [Fix] Close live clients before Ruby shutdown finalization, preventing a possible segfault on exit. Ported from rdkafka-ruby (#964, Alex Selesse).
|
|
135
|
+
- [Fix] Destroy the native handle when client construction fails partway, so it is no longer orphaned. Ported from rdkafka-ruby (#964, Alex Selesse).
|
|
136
|
+
- [Fix] Fix a double-free in `Consumer#poll_batch`/`#poll_batch_nb` that could abort the process when building a message raised a non-`RdkafkaError`. Ported from rdkafka-ruby (#973).
|
|
137
|
+
- [Fix] Free native resources when `Admin#describe_configs`/`#incremental_alter_configs` raise while building their request (e.g. a non-String resource name). Ported from rdkafka-ruby (#973).
|
|
138
|
+
- [Fix] Raise `ConfigError` instead of segfaulting when `Admin#describe_configs`/`#incremental_alter_configs` get an empty resource name or a negative resource type. Ported from rdkafka-ruby (#973).
|
|
139
|
+
- [Fix] Stop the topic-partition metadata string from being freed while librdkafka still uses it. Ported from rdkafka-ruby (#969, Randy Stauner).
|
|
140
|
+
|
|
141
|
+
## 0.28.1 (2026-09-04)
|
|
142
|
+
- [Enhancement] Add `Admin#delete_records` to delete messages in a partition up to a given offset, or all current data with `:end`. Ported from rdkafka-ruby (#956).
|
|
143
|
+
- [Enhancement] Add `Admin#list_consumer_groups` for a cluster-wide listing of consumer groups. Ported from rdkafka-ruby (#955).
|
|
144
|
+
- [Fix] Make `NativeKafka#close` fork-aware so a forked child no longer segfaults on exit. Handles record their creator pid and skip the native teardown in any other process.
|
|
145
|
+
- [Fix] Stabilize the flaky partitions count cache statistics spec.
|
|
146
|
+
- [Fix] Stabilize the `to_native_tpl` leak integration spec against RSS measurement noise.
|
|
147
|
+
|
|
148
|
+
## 0.28.0 (2026-07-12)
|
|
149
|
+
- [Enhancement] Bump librdkafka to `2.14.2` (maintenance release with bundled dependency CVE fixes and a fix for duplicate groups in `ListConsumerGroups`).
|
|
150
|
+
- [Enhancement] Add `Consumer#metadata` and `Producer#metadata`, mirroring `Admin#metadata`, to fetch cluster metadata without a separate admin connection.
|
|
151
|
+
- [Enhancement] Name the failing topic and partition in `RdkafkaError`s raised for per-partition `list_offsets` errors.
|
|
152
|
+
- [Enhancement] Add `Consumer#list_offsets`, mirroring `Admin#list_offsets`, and compute `Consumer#lag` with one batched query instead of a roundtrip per partition.
|
|
153
|
+
- [Enhancement] Extract the admin background-event result handlers into one class per operation under `lib/rdkafka/callbacks/`. Internal reorganization with no API or behavior change.
|
|
154
|
+
- [Enhancement] Expose `replicas` and `isrs` (in-sync replica broker ids) on each partition in topic metadata; both were previously dropped from the `Metadata#topics` partition hashes.
|
|
155
|
+
- [Enhancement] Reuse per-thread scratch pointers in `Consumer::Headers.from_native`, removing the per-message native allocations from the consumer hot path.
|
|
156
|
+
- [Enhancement] Remove the unused `DeliveryHandle` `:topic_name` struct field and its per-message allocation. Use `DeliveryHandle#topic` or `DeliveryReport#topic_name`, both unchanged.
|
|
157
|
+
- [Fix] Stop `poll_batch`/`poll_batch_nb` from discarding a whole batch when one message fails to build. The failure is returned inline as an `RdkafkaError`.
|
|
158
|
+
- [Fix] Add the missing `closed_consumer_check` to `Consumer#position`, so it raises a consistent `ClosedConsumerError` like every sibling offset method.
|
|
159
|
+
- [Fix] Stop leaking the native `rd_kafka_topic_conf_t` in `Producer#set_topic_config` when a per-topic config value is rejected.
|
|
160
|
+
- [Fix] Raise instead of silently dropping a rejected `incremental_alter_configs` entry, which previously left the alter request reporting success.
|
|
161
|
+
- [Fix] Let `PartitionsCountCache` adopt a lower partition count once the cached entry has expired, so a topic recreated with fewer partitions no longer fails `produce` until process restart.
|
|
162
|
+
- [Fix] Fully close a consumer collected without an explicit `close`, preventing a hang or leak.
|
|
163
|
+
- [Fix] Stop `describe_configs`, `incremental_alter_configs` and `list_offsets` from leaking native resources when their arguments are rejected.
|
|
164
|
+
- [Fix] Destroy the native topic-partition list in `TopicPartitionList#to_native_tpl` when population fails partway, which previously leaked the half-built list.
|
|
165
|
+
- [Fix] Allocate the admin result-count out-parameter as `:size_t` instead of `:int32`, fixing a 4-byte overflow on every admin result parse.
|
|
166
|
+
- [Fix] Stop every admin operation from leaking its result event. The internal FFI struct fields on admin handles are removed; use `handle.wait` and the returned report objects, which are unchanged.
|
|
167
|
+
- [Fix] Return the real error from an admin operation that fails at the operation level (e.g. brokers unreachable) instead of blocking until `wait` times out.
|
|
168
|
+
- [Fix] Stop leaking the native `rd_kafka_conf_t` when client creation fails, a multi-KB leak per failed attempt for supervisors retrying on transient SASL/SSL misconfiguration.
|
|
169
|
+
- [Fix] Stop `Metadata` from leaking the native metadata struct on every retried fetch; each attempt now frees its own native resources.
|
|
170
|
+
- [Fix] Free the librdkafka-allocated string in `Consumer#cluster_id` and `Consumer#member_id`, and fix the `rd_kafka_clusterid` arity. `Consumer#cluster_id` now accepts a `timeout_ms`.
|
|
171
|
+
- [Fix] Guard the message delivery callback so a raising user `delivery_callback` can no longer leave the handle locked or crash the producer; exceptions are now logged and swallowed.
|
|
172
|
+
- [Fix] Stop `Producer#produce` from orphaning the delivery handle in the process-global registry when it fails after registering it.
|
|
173
|
+
- [Fix] Attach `rd_kafka_query_watermark_offsets` with `blocking: true` so it releases the GVL; it previously froze every other Ruby thread for up to `timeout_ms`.
|
|
174
|
+
- [Fix] Stabilize the flaky `Consumer#lag` spec on overloaded CI. Backported from rdkafka-ruby (#912).
|
|
175
|
+
- [Fix] Raise `ConfigError` instead of `NameError` in `Admin#delete_group`, `#delete_acl` and `#describe_acl` when the background queue is unavailable.
|
|
176
|
+
- [Fix] Forward `broker_message` and `instance_name` through `RdkafkaError.build`; both were previously discarded on the `rd_kafka_error_t` pointer path.
|
|
177
|
+
- [Fix] Synchronize `AbstractHandle::REGISTRY` mutations with a mutex, which could otherwise lose a write on JRuby and leave a handle unregistered or leaked.
|
|
178
|
+
- [Fix] Bound the `Metadata` retry loop to about 5 seconds, so a synchronous metadata fetch can no longer block for minutes.
|
|
179
|
+
- [Fix] Cache the partition count for a missing topic, so `produce` with a `partition_key` to a not-yet-created topic no longer runs a blocking metadata query on every message.
|
|
180
|
+
|
|
181
|
+
## 0.27.2 (2026-05-21)
|
|
182
|
+
- [Enhancement] `poll_batch` and `poll_batch_nb` now return error events inline as `RdkafkaError` objects rather than raising on the first error. The return type is `Array<Message, RdkafkaError>` and callers are responsible for handling errors in the result.
|
|
183
|
+
|
|
184
|
+
## 0.27.1 (2026-05-15)
|
|
185
|
+
- [Fix] `poll_nb`, `poll_nb_each`, `poll_batch` and `poll_batch_nb` now raise `RdkafkaError` with `details` populated (`{topic:, partition:, offset:}`) when a message contains an error, consistent with `poll`.
|
|
186
|
+
|
|
187
|
+
## 0.27.0 (2026-05-10)
|
|
188
|
+
- [Feature] Add `Consumer#poll_batch(timeout_ms, max_items:)` and `Consumer#poll_batch_nb(timeout_ms, max_items:)` for batch message polling via `rd_kafka_consume_batch_queue` (from upstream).
|
|
189
|
+
- [Enhancement] Bump librdkafka to `2.14.1`.
|
|
190
|
+
- [Fix] Fix resource leak in `Admin#describe_configs` and `Admin#incremental_alter_configs` where `admin_options_ptr` and `queue_ptr` were not destroyed in the ensure block (from upstream).
|
|
191
|
+
- [Fix] Fix leaked queue reference in `Config#native_kafka` where `rd_kafka_queue_get_main` return value was not destroyed after passing to `rd_kafka_set_log_queue` (from upstream).
|
|
192
|
+
- [Fix] Fix native topic partition list leak in `Consumer#position` where `tpl` was never destroyed (from upstream).
|
|
193
|
+
|
|
194
|
+
## 0.26.1 (2026-04-13)
|
|
195
|
+
- [Feature] Add `Config#describe_properties` to dump all librdkafka configuration properties (including defaults and hidden properties) as a Hash via `rd_kafka_conf_dump` (from upstream).
|
|
196
|
+
|
|
197
|
+
## 0.26.0 (2026-04-11)
|
|
198
|
+
- [Enhancement] Bump librdkafka to `2.14.0`.
|
|
199
|
+
- [Enhancement] Add `advertised.listeners` to macOS ARM64 CI KRaft broker config to fix flaky tests (from upstream).
|
|
200
|
+
|
|
201
|
+
## 0.25.0 (2026-04-02)
|
|
202
|
+
- **[Feature]** Support `rd_kafka_ListOffsets` admin API for querying partition offsets by specification (earliest, latest, max_timestamp, or by timestamp) without requiring a consumer group (from upstream).
|
|
203
|
+
- **[Feature]** Extend `Rdkafka::RdkafkaError` with `instance_name` attribute containing the `rd_kafka_name` for tying errors back to specific native Kafka instances (from upstream).
|
|
204
|
+
- [Enhancement] Bump librdkafka to `2.13.2`
|
|
205
|
+
- [Enhancement] Update `confluentinc/cp-kafka` Docker image to `8.2.0` (from upstream).
|
|
206
|
+
- [Enhancement] Disable broker-side auto topic creation to prevent race condition warnings with Kafka 8.2.0 (from upstream).
|
|
207
|
+
- [Enhancement] Embed a per-file SPEC_HASH in test topic and consumer group names for tracing Kafka warnings back to specific spec files (from upstream).
|
|
208
|
+
- [Fix] Fix test topic auto-creation race conditions causing `TOPIC_ALREADY_EXISTS` warnings (from upstream).
|
|
209
|
+
- [Fix] Fix `describe_configs` specs to not depend on config ordering (from upstream).
|
|
210
|
+
- [Fix] Register `ObjectSpace.define_finalizer` in `Rdkafka::Consumer` to prevent segfaults when a consumer is GC'd without being explicitly closed (from upstream).
|
|
211
|
+
- [Fix] Remove dead `#finalizer` instance methods from `Consumer` and `Admin` that could never work as GC finalizers (from upstream).
|
|
212
|
+
- [Fix] Prevent cascading test failures in admin specs when a single handle leaks into the registry (from upstream).
|
|
213
|
+
|
|
214
|
+
## 0.24.0 (2026-02-25)
|
|
215
|
+
- **[Feature]** Add `Producer#queue_size` (and the `#queue_length` alias) to report the number of messages waiting in the librdkafka output queue.
|
|
216
|
+
- **[Feature]** Add `enable_queue_io_events` and `enable_background_queue_io_events` to `Consumer`, `Producer` and `Admin` for fiber schedulers (Falcon, Async) and custom event loops (from upstream).
|
|
217
|
+
- **[Deprecation]** `AbstractHandle#wait` parameter `max_wait_timeout` (seconds) is deprecated in favor of `max_wait_timeout_ms` (milliseconds). The old parameter still works with backwards compatibility but will be removed in v1.0.0.
|
|
218
|
+
- **[Deprecation]** `PartitionsCountCache` constructor parameter `ttl` (seconds) is deprecated in favor of `ttl_ms` (milliseconds). The old parameter still works with backwards compatibility but will be removed in v1.0.0.
|
|
219
|
+
- [Enhancement] Add Ruby 4.0 support.
|
|
220
|
+
- [Enhancement] Add `Rdkafka::Defaults` module with centralized timeout constants (aligning with upstream refactor).
|
|
221
|
+
- [Enhancement] Add `run_polling_thread` parameter to `Config#producer` and `Config#admin` for fiber scheduler integration (from upstream).
|
|
222
|
+
- [Enhancement] Extract all hardcoded timeout values to named constants for better maintainability and discoverability.
|
|
223
|
+
- [Enhancement] Add `timeout_ms` parameter to `Consumer#each` for configurable poll timeout (from upstream).
|
|
224
|
+
- [Enhancement] Extract non-time configuration values (`METADATA_MAX_RETRIES`, `PARTITIONS_COUNT_CACHE_TTL_MS`) to `Rdkafka::Defaults` module (from upstream).
|
|
225
|
+
- [Enhancement] Add descriptive error messages for glibc compatibility issues with instructions for resolution (from upstream).
|
|
226
|
+
- [Enhancement] Use native ARM64 runners instead of QEMU emulation for Alpine musl aarch64 builds, improving build performance and reliability (from upstream).
|
|
227
|
+
- [Enhancement] Enable parallel compilation (`make -j$(nproc)`) for ARM64 Alpine musl builds (from upstream).
|
|
228
|
+
- [Enhancement] Bump librdkafka to 2.13.0.
|
|
229
|
+
- [Enhancement] Add non-blocking poll methods (`poll_nb`, `events_poll_nb`) that skip GVL release for efficient fiber scheduler integration when using `poll(0)` (from upstream).
|
|
230
|
+
- [Enhancement] Add `events_poll_nb_each` method on `Producer`, `Consumer`, and `Admin` for polling events in a single GVL/mutex session. Yields count after each iteration, caller returns `:stop` to break (from upstream).
|
|
231
|
+
- [Enhancement] Add `poll_nb_each` method on `Consumer` for non-blocking message polling with proper resource cleanup, yielding each message and supporting early termination via `:stop` return value (from upstream).
|
|
232
|
+
- [Fix] Fix Kerberos build on Alpine 3.23+ (GCC 15/C23) by forcing C17 semantics to maintain compatibility with old-style K&R declarations in MIT Kerberos and Cyrus SASL dependencies.
|
|
233
|
+
|
|
234
|
+
## 0.23.1 (2025-11-14)
|
|
235
|
+
- **[Feature]** Add integrated fatal error handling in `RdkafkaError.validate!` - automatically detects and handles fatal errors (-150) with single entrypoint API.
|
|
236
|
+
- [Enhancement] Add optional `client_ptr` parameter to `validate!` for automatic fatal error remapping to actual underlying error codes.
|
|
237
|
+
- [Enhancement] Update all Producer and Consumer `validate!` calls to provide `client_ptr` for comprehensive fatal error handling.
|
|
238
|
+
- [Enhancement] Add `rd_kafka_fatal_error()` FFI binding to retrieve actual fatal error details.
|
|
239
|
+
- [Enhancement] Add `rd_kafka_test_fatal_error()` FFI binding for testing fatal error scenarios.
|
|
240
|
+
- [Enhancement] Add `RdkafkaError.build_fatal` class method for centralized fatal error construction.
|
|
241
|
+
- [Enhancement] Add comprehensive tests for fatal error handling including unit tests and integration tests.
|
|
242
|
+
- [Enhancement] Add `RD_KAFKA_PARTITION_UA` constant for unassigned partition (-1).
|
|
243
|
+
- [Enhancement] Replace magic numbers with the `RD_KAFKA_RESP_ERR_NO_ERROR` and `RD_KAFKA_PARTITION_UA` constants.
|
|
244
|
+
- [Enhancement] Add `Rdkafka::Testing` module for testing fatal error scenarios on both producers and consumers.
|
|
245
|
+
- [Deprecated] `RdkafkaError.validate_fatal!` - use `validate!` with `client_ptr` parameter instead.
|
|
246
|
+
|
|
247
|
+
## 0.23.0 (2025-11-01)
|
|
248
|
+
- [Enhancement] Bump librdkafka to 2.12.1.
|
|
249
|
+
- [Enhancement] Force lock FFI to 1.17.1 or higher to include critical bug fixes around GCC, write barriers, and thread restarts for forks.
|
|
250
|
+
- [Fix] Fix for Core dump when providing extensions to oauthbearer_set_token (dssjoblom)
|
|
251
|
+
|
|
252
|
+
## 0.22.2 (2025-10-10)
|
|
253
|
+
- [Fix] Fix Github Action Ruby reference preventing non-compiled releases.
|
|
254
|
+
|
|
255
|
+
## 0.22.1 (2025-10-09)
|
|
256
|
+
- [Enhancement] Optimize header processing to eliminate double hash lookups and method checking overhead.
|
|
257
|
+
- [Enhancement] Speed up producer header processing (69% faster for nil headers, 41% for empty headers, 12-32% when headers are present).
|
|
258
|
+
|
|
259
|
+
## 0.22.0 (2025-09-26)
|
|
260
|
+
- **[EOL]** Drop support for Ruby 3.1 to move forward with the fiber scheduler work.
|
|
261
|
+
- [Enhancement] Bump librdkafka to 2.11.1.
|
|
262
|
+
- [Enhancement] Improve sigstore attestation for precompiled releases.
|
|
263
|
+
- [Fix] Fix incorrectly set default SSL certs dir.
|
|
264
|
+
- [Fix] Disable OpenSSL Heartbeats during compilation.
|
|
265
|
+
|
|
266
|
+
## 0.21.0 (2025-08-18)
|
|
267
|
+
- [Enhancement] Support explicit Debian testing due to lib issues.
|
|
268
|
+
- [Enhancement] Support ARM64 Gnu precompilation.
|
|
269
|
+
- [Enhancement] Bump librdkafka to 2.11.0.
|
|
270
|
+
- [Enhancement] Improve what symbols are exposed outside of the precompiled extensions.
|
|
271
|
+
- [Enhancement] Introduce an integration suite layer for non RSpec specs execution.
|
|
272
|
+
- [Fix] Add `json` gem as a dependency (was missing but used).
|
|
273
|
+
|
|
274
|
+
## 0.20.1 (2025-07-18)
|
|
275
|
+
- [Enhancement] Drastically increase number of platforms in the integration suite
|
|
276
|
+
- [Fix] Support Ubuntu `22.04` and older Alpine precompiled versions
|
|
277
|
+
- [Fix] FFI::DynamicLibrary.load_library': Could not open library
|
|
278
|
+
- [Change] Add new CI action to trigger auto-doc refresh.
|
|
279
|
+
|
|
280
|
+
## 0.20.0 (2025-07-17)
|
|
281
|
+
- **[Feature]** Add precompiled `x86_64-linux-gnu` setup.
|
|
282
|
+
- **[Feature]** Add precompiled `x86_64-linux-musl` setup.
|
|
283
|
+
- **[Feature]** Add precompiled `macos_arm64` setup.
|
|
284
|
+
- [Enhancement] Run all specs on each of the platforms with and without precompilation.
|
|
285
|
+
- [Enhancement] Support transactional id in the ACL API.
|
|
286
|
+
- [Fix] Fix a case where using empty key on the `musl` architecture would cause a segfault.
|
|
287
|
+
- [Fix] Fix for null pointer reference bypass on empty string being too wide causing segfault.
|
|
288
|
+
|
|
289
|
+
**Note**: Precompiled extensions are a new feature in this release. While they significantly improve installation speed and reduce build dependencies, they should be thoroughly tested in your staging environment before deploying to production. If you encounter any issues with precompiled extensions, you can fall back to building from sources. For more information, see the [Native Extensions documentation](https://karafka.io/docs/Development-Native-Extensions/).
|
|
290
|
+
|
|
291
|
+
## 0.19.5 (2025-05-30)
|
|
292
|
+
- [Enhancement] Allow for producing to non-existing topics with `key` and `partition_key` present.
|
|
293
|
+
|
|
294
|
+
## 0.19.4 (2025-05-23)
|
|
295
|
+
- [Change] Move to trusted-publishers and remove signing since no longer needed.
|
|
296
|
+
|
|
297
|
+
## 0.19.3 (2025-05-23)
|
|
298
|
+
- [Enhancement] Include broker message in the error full message if provided.
|
|
299
|
+
|
|
300
|
+
## 0.19.2 (2025-05-20)
|
|
301
|
+
- [Enhancement] Replace TTL-based partition count cache with a global cache that reuses `librdkafka` statistics data when possible.
|
|
302
|
+
- [Enhancement] Roll out experimental jruby support.
|
|
303
|
+
- [Fix] Fix issue where post-closed producer C topics refs would not be cleaned.
|
|
304
|
+
- [Fix] Fiber causes Segmentation Fault.
|
|
305
|
+
- [Change] Move to trusted-publishers and remove signing since no longer needed.
|
|
306
|
+
|
|
307
|
+
## 0.19.1 (2025-04-07)
|
|
308
|
+
- [Enhancement] Support producing and consuming of headers with mulitple values (KIP-82).
|
|
309
|
+
- [Enhancement] Allow native Kafka customization poll time.
|
|
310
|
+
|
|
311
|
+
## 0.19.0 (2025-01-20)
|
|
312
|
+
- **[Breaking]** Deprecate and remove `#each_batch` due to data consistency concerns.
|
|
313
|
+
- [Enhancement] Bump librdkafka to 2.8.0
|
|
314
|
+
- [Fix] Restore `Rdkafka::Bindings.rd_kafka_global_init` as it was not the source of the original issue.
|
|
315
|
+
|
|
316
|
+
## 0.18.1 (2024-12-04)
|
|
317
|
+
- [Fix] Do not run `Rdkafka::Bindings.rd_kafka_global_init` on require to prevent some of macos versions from hanging on Puma fork.
|
|
318
|
+
|
|
319
|
+
## 0.18.0 (2024-11-26)
|
|
320
|
+
- **[EOL]** Drop Ruby 3.0 support
|
|
321
|
+
- [Enhancement] Bump librdkafka to 2.6.1
|
|
322
|
+
- [Enhancement] Use default oauth callback if none is passed (bachmanity1)
|
|
323
|
+
- [Enhancement] Expose `rd_kafka_global_init` to mitigate macos forking issues.
|
|
324
|
+
- [Patch] Retire no longer needed cooperative-sticky patch.
|
|
325
|
+
|
|
326
|
+
## 0.17.6 (2024-09-03)
|
|
327
|
+
- [Fix] Fix incorrectly behaving CI on failures.
|
|
328
|
+
- [Fix] Fix invalid patches librdkafka references.
|
|
329
|
+
|
|
330
|
+
## 0.17.5 (2024-09-03)
|
|
331
|
+
- [Patch] Patch with "Add forward declaration to fix compilation without ssl" fix
|
|
332
|
+
|
|
333
|
+
## 0.17.4 (2024-09-02)
|
|
334
|
+
- [Enhancement] Bump librdkafka to 2.5.3
|
|
335
|
+
- [Enhancement] Do not release GVL on `rd_kafka_name` (ferrous26)
|
|
336
|
+
- [Fix] Fix unused variable reference in producer (lucasmvnascimento)
|
|
337
|
+
|
|
3
338
|
## 0.17.3 (2024-08-09)
|
|
4
339
|
- [Fix] Mitigate a case where FFI would not restart the background events callback dispatcher in forks.
|
|
5
340
|
|
|
@@ -23,7 +358,7 @@
|
|
|
23
358
|
- **[Breaking]** `HashWithSymbolKeysTreatedLikeStrings` has been removed so headers are regular hashes with string keys.
|
|
24
359
|
- [Enhancement] Bump librdkafka to 2.4.0
|
|
25
360
|
- [Enhancement] Save two objects on message produced and lower CPU usage on message produced with small improvements.
|
|
26
|
-
- [
|
|
361
|
+
- **[EOL]** Remove support for Ruby 2.7. Supporting it was a bug since rest of the karafka ecosystem no longer supports it.
|
|
27
362
|
|
|
28
363
|
## 0.15.2 (2024-07-10)
|
|
29
364
|
- [Fix] Switch to local release of librdkafka to mitigate its unavailability.
|
|
@@ -104,7 +439,7 @@
|
|
|
104
439
|
- [Enhancement] Get consumer position (thijsc & mensfeld)
|
|
105
440
|
|
|
106
441
|
## 0.13.7 (2023-10-31)
|
|
107
|
-
- [
|
|
442
|
+
- **[EOL]** Drop support for Ruby 2.6 due to incompatibilities in usage of `ObjectSpace::WeakMap`
|
|
108
443
|
- [Fix] Fix dangling Opaque references.
|
|
109
444
|
|
|
110
445
|
## 0.13.6 (2023-10-17)
|
|
@@ -171,7 +506,7 @@
|
|
|
171
506
|
|
|
172
507
|
## 0.11.0 (2021-11-17)
|
|
173
508
|
- Upgrade librdkafka to 1.8.2
|
|
174
|
-
- Bump supported minimum Ruby version to 2.6
|
|
509
|
+
- **[EOL]** Bump supported minimum Ruby version to 2.6
|
|
175
510
|
- Better homebrew path detection
|
|
176
511
|
|
|
177
512
|
## 0.10.0 (2021-09-07)
|