karafka-rdkafka 0.15.0.beta3 → 0.15.0.rc1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f5e7e7fd2a934c69dc9fb5e6a7c12c46ccbafbe62306919926872cb160894a54
4
- data.tar.gz: e0d1f6f2ec2c09e3f8c7631a8ab6490811bb76f583a0d9dc73f15826e396b7b0
3
+ metadata.gz: 91ca920dc47a311632eb36adedc660a29d0cb72e6bcb2959451836a2fb99dd73
4
+ data.tar.gz: d4879f60d701be3c5b24738567d502eb63ca732f546e3fc54bc423892bf1521c
5
5
  SHA512:
6
- metadata.gz: 3ef0a6ea40dfea7b168152717f46c8ddfbf461fd6841ec262b8f15df2e0ff1b68d38b06664b9b59ad37b1f79839e2f0c57077e56d7557c9443710b5fb3d82507
7
- data.tar.gz: 5ed98fb28a6e2755937deb05c36845b495df9ac1573e9974df395a101b6cd7cfabcd494cd21ddc4fbd97f326198aeb26bc83f7160fbf30f788c564a842fb6365
6
+ metadata.gz: 54a2b2d134bb46ecb888b699e5c3efb6240e5b7f7d659d17fed60280e88c3c748066b1d8912c81762e1275f3384318baadf238ae7f068839ed3ba0e3be085b34
7
+ data.tar.gz: b27d1257a263f5fc54eff2568891c68d012a6a2b4d48168379965dd9e30e4c3c37d71867f925b9324e32c8d1dea438f6b7760109662137d82806f1d08a0f006b
checksums.yaml.gz.sig CHANGED
Binary file
@@ -37,9 +37,9 @@ jobs:
37
37
  - name: Install package dependencies
38
38
  run: "[ -e $APT_DEPS ] || sudo apt-get install -y --no-install-recommends $APT_DEPS"
39
39
 
40
- - name: Start Kafka with docker-compose
40
+ - name: Start Kafka with docker compose
41
41
  run: |
42
- docker-compose up -d || (sleep 5 && docker-compose up -d)
42
+ docker compose up -d || (sleep 5 && docker compose up -d)
43
43
 
44
44
  - name: Set up Ruby
45
45
  uses: ruby/setup-ruby@v1
data/CHANGELOG.md CHANGED
@@ -3,6 +3,7 @@
3
3
  ## 0.15.0 (Unreleased)
4
4
  - **[Feature]** Oauthbearer token refresh callback (bruce-szalwinski-he)
5
5
  - **[Feature]** Support incremental config describe + alter API (mensfeld)
6
+ - [Enhancement] name polling Thread as `rdkafka.native_kafka#<name>` (nijikon)
6
7
  - [Enhancement] Replace time poll based wait engine with an event based to improve response times on blocking operations and wait (nijikon + mensfeld)
7
8
  - [Enhancement] Allow for usage of the second regex engine of librdkafka by setting `RDKAFKA_DISABLE_REGEX_EXT` during build (mensfeld)
8
9
  - [Change] Allow for native kafka thread operations deferring and manual start for consumer, producer and admin.
@@ -60,6 +60,7 @@ module Rdkafka
60
60
  end
61
61
  end
62
62
 
63
+ @polling_thread.name = "rdkafka.native_kafka##{Rdkafka::Bindings.rd_kafka_name(@inner).gsub('rdkafka', '')}"
63
64
  @polling_thread.abort_on_exception = true
64
65
  @polling_thread[:closing] = false
65
66
  end
@@ -1,7 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Rdkafka
4
- VERSION = "0.15.0.beta3"
4
+ VERSION = "0.15.0.rc1"
5
5
  LIBRDKAFKA_VERSION = "2.3.0"
6
6
  LIBRDKAFKA_SOURCE_SHA256 = "2d49c35c77eeb3d42fa61c43757fcbb6a206daa560247154e60642bcdcc14d12"
7
7
  end
@@ -10,8 +10,9 @@ describe Rdkafka::NativeKafka do
10
10
  subject(:client) { described_class.new(native, run_polling_thread: true, opaque: opaque) }
11
11
 
12
12
  before do
13
+ allow(Rdkafka::Bindings).to receive(:rd_kafka_name).and_return('producer-1')
13
14
  allow(Thread).to receive(:new).and_return(thread)
14
-
15
+ allow(thread).to receive(:name=).with("rdkafka.native_kafka#producer-1")
15
16
  allow(thread).to receive(:[]=).with(:closing, anything)
16
17
  allow(thread).to receive(:join)
17
18
  allow(thread).to receive(:abort_on_exception=).with(anything)
@@ -20,6 +21,12 @@ describe Rdkafka::NativeKafka do
20
21
  after { client.close }
21
22
 
22
23
  context "defaults" do
24
+ it "sets the thread name" do
25
+ expect(thread).to receive(:name=).with("rdkafka.native_kafka#producer-1")
26
+
27
+ client
28
+ end
29
+
23
30
  it "sets the thread to abort on exception" do
24
31
  expect(thread).to receive(:abort_on_exception=).with(true)
25
32
 
data.tar.gz.sig CHANGED
Binary file
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: karafka-rdkafka
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.15.0.beta3
4
+ version: 0.15.0.rc1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Thijs Cadier
@@ -36,7 +36,7 @@ cert_chain:
36
36
  AnG1dJU+yL2BK7vaVytLTstJME5mepSZ46qqIJXMuWob/YPDmVaBF39TDSG9e34s
37
37
  msG3BiCqgOgHAnL23+CN3Rt8MsuRfEtoTKpJVcCfoEoNHOkc
38
38
  -----END CERTIFICATE-----
39
- date: 2024-03-23 00:00:00.000000000 Z
39
+ date: 2024-04-10 00:00:00.000000000 Z
40
40
  dependencies:
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: ffi
metadata.gz.sig CHANGED
Binary file