logstash-integration-kafka 11.3.1-java → 11.3.3-java

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: 47fc20c3860d5f9330cba8cab1f89f53b7ba0b0192305e890fa5e9e637846725
4
- data.tar.gz: 291fab3d04d9c5f54b96e6425ba46f69d08473fcfa030a1e2ca331ea5c688f51
3
+ metadata.gz: b779dc371104b0d12e9c0653c3503c316da6c283f240a48d9e93af8aab1a6657
4
+ data.tar.gz: 5cc97ac62bf631856947cab6f408bff40f39d77b038fd169445cca102a54beb2
5
5
  SHA512:
6
- metadata.gz: 4aec7f00ca439a8289dd26325086b45319d0f6442f1b9c5849bb41ea9821f9bbdfc2bb54a02a1f9a7ddc20b698009073b995d7118405ac30eb7ef36120dc526a
7
- data.tar.gz: 2d1b626b41cc50820e3e5bc2e00d6eb609cdc6b72f5e5f007655fdc5ea201d63d0be0820652e7ebe86484612dd58624fb58931b97782db8042c63cec72f37ed6
6
+ metadata.gz: e6f4198f56a1f964db493573fa8b66a89f6c869885b43b964e43c947f1e81906eac078be550d8d1e32a59f1f5d7b89428adba125dfc4324fbb7fc0075382b3dd
7
+ data.tar.gz: f27c13d89ebe188e952177dbab113cdc9748b40c854d044a51be94ca69ec636627256e79e403bfac4e32300affbd1176381accc40cb7ee3c5740b51127bfffca
data/CHANGELOG.md CHANGED
@@ -1,3 +1,9 @@
1
+ ## 11.3.3
2
+ - Fix "Can't modify frozen string" error when record value is `nil` (tombstones) [#155](https://github.com/logstash-plugins/logstash-integration-kafka/pull/155)
3
+
4
+ ## 11.3.2
5
+ - Fix: update Avro library [#150](https://github.com/logstash-plugins/logstash-integration-kafka/pull/150)
6
+
1
7
  ## 11.3.1
2
8
  - Fix: update snappy dependency [#148](https://github.com/logstash-plugins/logstash-integration-kafka/pull/148)
3
9
 
@@ -18,6 +24,9 @@
18
24
  - Deprecated `default` value for setting `client_dns_lookup` forcing to `use_all_dns_ips` when explicitly used [#130](https://github.com/logstash-plugins/logstash-integration-kafka/pull/130)
19
25
  - Changed the consumer's poll from using the one that blocks on metadata retrieval to the one that doesn't [#136](https://github.com/logstash-plugins/logstash-integration-kafka/pull/133)
20
26
 
27
+ ## 10.12.1
28
+ - Fix: update Avro library on 10.x [#149](https://api.github.com/repos/logstash-plugins/logstash-integration-kafka/pulls/149)
29
+
21
30
  ## 10.12.0
22
31
  - bump kafka client to 2.8.1 [#115](https://github.com/logstash-plugins/logstash-integration-kafka/pull/115)
23
32
 
@@ -356,7 +356,8 @@ class LogStash::Inputs::Kafka < LogStash::Inputs::Base
356
356
  end
357
357
 
358
358
  def handle_record(record, codec_instance, queue)
359
- codec_instance.decode(record.value.to_s) do |event|
359
+ # use + since .to_s on nil/boolean returns a frozen string since ruby 2.7
360
+ codec_instance.decode(+record.value.to_s) do |event|
360
361
  decorate(event)
361
362
  maybe_set_metadata(event, record)
362
363
  queue << event
@@ -3,7 +3,7 @@
3
3
  require 'jar_dependencies'
4
4
  require_jar('io.confluent', 'kafka-avro-serializer', '7.4.0')
5
5
  require_jar('io.confluent', 'kafka-schema-serializer', '7.4.0')
6
- require_jar('org.apache.avro', 'avro', '1.11.1')
6
+ require_jar('org.apache.avro', 'avro', '1.11.3')
7
7
  require_jar('io.confluent', 'kafka-schema-registry-client', '7.4.0')
8
8
  require_jar('org.apache.kafka', 'kafka-clients', '3.4.1')
9
9
  require_jar('org.slf4j', 'slf4j-api', '1.7.36')
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'logstash-integration-kafka'
3
- s.version = '11.3.1'
3
+ s.version = '11.3.3'
4
4
  s.licenses = ['Apache-2.0']
5
5
  s.summary = "Integration with Kafka - input and output plugins"
6
6
  s.description = "This gem is a Logstash plugin required to be installed on top of the Logstash core pipeline "+
@@ -301,7 +301,7 @@ def consume_messages(config, queue: Queue.new, timeout:, event_count:)
301
301
  end
302
302
 
303
303
 
304
- describe "schema registry connection options" do
304
+ describe "schema registry connection options", :integration => true do
305
305
  schema_registry = Manticore::Client.new
306
306
  before (:all) do
307
307
  shutdown_schema_registry
@@ -134,6 +134,21 @@ describe LogStash::Inputs::Kafka do
134
134
  it 'should set the consumer thread name' do
135
135
  expect(subject.instance_variable_get('@runner_threads').first.get_name).to eq("kafka-input-worker-test-0")
136
136
  end
137
+
138
+ context 'with records value frozen' do
139
+ # boolean, module name & nil .to_s are frozen by default (https://bugs.ruby-lang.org/issues/16150)
140
+ let(:payload) do [
141
+ org.apache.kafka.clients.consumer.ConsumerRecord.new("logstash", 0, 0, "nil", nil),
142
+ org.apache.kafka.clients.consumer.ConsumerRecord.new("logstash", 0, 0, "true", true),
143
+ org.apache.kafka.clients.consumer.ConsumerRecord.new("logstash", 0, 0, "false", false),
144
+ org.apache.kafka.clients.consumer.ConsumerRecord.new("logstash", 0, 0, "frozen", "".freeze)
145
+ ]
146
+ end
147
+
148
+ it "should process events" do
149
+ expect(q.size).to eq(4)
150
+ end
151
+ end
137
152
  end
138
153
 
139
154
  context 'when errors are encountered during poll' do
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: logstash-integration-kafka
3
3
  version: !ruby/object:Gem::Version
4
- version: 11.3.1
4
+ version: 11.3.3
5
5
  platform: java
6
6
  authors:
7
7
  - Elastic
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-10-04 00:00:00.000000000 Z
11
+ date: 2024-01-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  requirement: !ruby/object:Gem::Requirement
@@ -261,7 +261,7 @@ files:
261
261
  - vendor/jar-dependencies/io/confluent/kafka-avro-serializer/7.4.0/kafka-avro-serializer-7.4.0.jar
262
262
  - vendor/jar-dependencies/io/confluent/kafka-schema-registry-client/7.4.0/kafka-schema-registry-client-7.4.0.jar
263
263
  - vendor/jar-dependencies/io/confluent/kafka-schema-serializer/7.4.0/kafka-schema-serializer-7.4.0.jar
264
- - vendor/jar-dependencies/org/apache/avro/avro/1.11.1/avro-1.11.1.jar
264
+ - vendor/jar-dependencies/org/apache/avro/avro/1.11.3/avro-1.11.3.jar
265
265
  - vendor/jar-dependencies/org/apache/kafka/kafka-clients/3.4.1/kafka-clients-3.4.1.jar
266
266
  - vendor/jar-dependencies/org/lz4/lz4-java/1.8.0/lz4-java-1.8.0.jar
267
267
  - vendor/jar-dependencies/org/slf4j/slf4j-api/1.7.36/slf4j-api-1.7.36.jar