[8.19](backport #45128) [kafka] Handle configuration errors#45281
Merged
khushijain21 merged 1 commit into8.19from Jul 10, 2025
Merged
[8.19](backport #45128) [kafka] Handle configuration errors#45281khushijain21 merged 1 commit into8.19from
khushijain21 merged 1 commit into8.19from
Conversation
* [kafka] Handle configuration errors (cherry picked from commit 23f4491)
6 tasks
Contributor
|
Pinging @elastic/elastic-agent-data-plane (Team:Elastic-Agent-Data-Plane) |
andrzej-stencel
approved these changes
Jul 10, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Proposed commit message
This PR handles kafka configuration errors by dropping the message. Since configuration errors are of permanent error type and should not be retried.
Checklist
CHANGELOG.next.asciidocorCHANGELOG-developer.next.asciidoc.How to test this PR locally
Bring kafka server up using following command
Use following filebeat.yml
and you can see this error
{ "log.level": "error", "@timestamp": "2025-07-02T15:28:04.373+0530", "log.logger": "kafka", "log.origin": { "function": "github.com/elastic/beats/v7/libbeat/outputs/kafka.(*msgRef).fail", "file.name": "kafka/client.go", "file.line": 396 }, "message": "Kafka (topic=beats): dropping message due to invalid configuration kafka: invalid configuration (Attempt to produce message larger than configured Producer.MaxMessageBytes: 851 > 10)", "service.name": "filebeat", "ecs.version": "1.6.0" }Related issues
max_message_bytes) instead of dropping it (>=v8.18.0) #44619This is an automatic backport of pull request #45128 done by [Mergify](https://mergify.com).