linkedin / li-apache-kafka-clients

li-apache-kafka-clients is a wrapper library for the Apache Kafka vanilla clients. It provides additional features such as large message support and auditing to the Java producer and consumer in the open source Apache Kafka.
BSD 2-Clause "Simplified" License
133 stars 52 forks source link

Fix IndexOutputOfBoundsException when sending records with zero length values. #78

Closed smccauliff closed 7 years ago

smccauliff commented 7 years ago

The MessageSplitterImpl computes the number of segments as zero and then returns an empty list of segments. This change causes the zero length value to be handled the same was a null value. A producer unit test has been added for this corner case.