Prior to this commit, whenever we compressed a set of messages as a single
wrapper message we would set the message offset to be -1. This wasn't
an issue with Kafka Brokers < 0.11 but starting 0.11 the broker enforced
that the message offset should be 0 or greater than 0.
This commit ensures the wrapper message always gets 0 for it's message
offset since the broker will auto assign valid offsets based on the
internally compressed message offsets.
Prior to this commit, whenever we compressed a set of messages as a single wrapper message we would set the message offset to be -1. This wasn't an issue with Kafka Brokers < 0.11 but starting 0.11 the broker enforced that the message offset should be
0
or greater than0
.This commit ensures the wrapper message always gets
0
for it's message offset since the broker will auto assign valid offsets based on the internally compressed message offsets.resolves #39