forked from IBM/sarama
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Kafka 2.0 introduced chunked message down conversions which might produce partial messages at the end of the set. These partial messages are not well formed beyond offset and length, so they might cause strange decoding errors down the line. This fix makes `lengthField` a `dynamicPushDecoder` so it checks that the `packetDecoder` has at least that many bytes. It fixes the problem above and I think it's a more robust check in general.
- Loading branch information
1 parent
e7238b1
commit 682468d
Showing
2 changed files
with
90 additions
and
1 deletion.
There are no files selected for viewing
This file contains 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
This file contains 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