Closed jpohl41 closed 8 months ago
Hi @jpohl41!
Thank you very for reporting! This issue is caused by this Ruby change https://bugs.ruby-lang.org/issues/16150, which made boolean
, module name & nil
.to_s
values frozen by default.
We can indeed apply the same https://github.com/logstash-plugins/logstash-filter-mutate/commit/b0b923fec168a2cdf98a0fa1bdb6325bcf6ce51d solution here. I'll be working on it soon and will let you know once we have it fixed :)
Fix released on version 11.3.3
. Upgrading the plugin should solve the problem:
bin/logstash-plugin install --version 11.3.3 logstash-integration-kafka
Logstash information:
Please include the following information:
bin/logstash --version
)8.11.3
Dockerized .tar.gz
supervisord
Default install
JVM (e.g.
java -version
):openjdk 17.0.9
OS version (
uname -a
if on a Unix-like system):Alpine linux docker
Description of the problem including expected versus actual behavior: Actual Behavior: When sending a Kafka "tombstone" record (a.k.a. a record with a
null
value) I am seeing the following failure:Expected Behavior: I would expect to be able to handle "tombstone" records - this does not seem to have been an issue with Logstash v8.9.2 running plugin version
11.2.1
.Inside my Docker container running Logstash v8.9.2,
ruby --version
shows:Inside my Docker container running Logstash v8.11.3,
ruby --version
shows:I wonder if a solution similar to https://github.com/logstash-plugins/logstash-filter-mutate/commit/b0b923fec168a2cdf98a0fa1bdb6325bcf6ce51d could be implemented here?
Steps to reproduce:
Please include a minimal but complete recreation of the problem, including (e.g.) pipeline definition(s), settings, locale, etc. The easier you make for us to reproduce it, the more likely that somebody will take the time to look at it.
null
value (e.g."key1":null
)