You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In kafkas, when I consume records which produced from native kafka client, it always got Decode Error. but everything is OK when I use Producer in kafkas.
Currently I ignore the DecodeError with a little changes like this.
pub fn decode<B: ByteBuf>(buf: &mut B) -> Result<Vec<Record>, DecodeError> {
let mut records = Vec::new();
while buf.has_remaining() {
- Self::decode_batch(buf, &mut records)?;+ if let Err(_) = Self::decode_batch(buf, &mut records) {+ break;+ }
}
Ok(records)
}
There seems has no record lost.
The text was updated successfully, but these errors were encountered:
In kafkas, when I consume records which produced from native kafka client, it always got
Decode Error
. but everything is OK when I useProducer
in kafkas.Currently I ignore the
DecodeError
with a little changes like this.There seems has no record lost.
The text was updated successfully, but these errors were encountered: