Add log message for deserialization error handler

Add missing logging statement for the logAndContinue
deserialization error handler in Kafka Streams binder.

Polishing.

Resolves #494
This commit is contained in:
rahulbats
2018-11-07 12:28:50 -06:00
committed by Soby Chacko
parent 2144d3e26f
commit 3e39514003

View File

@@ -231,10 +231,11 @@ public class KafkaStreamsMessageConversionDelegate {
}
}
else if (kstreamBinderConfigurationProperties.getSerdeError() == KafkaStreamsBinderConfigurationProperties.SerdeError.logAndFail) {
throw new IllegalStateException("Inbound deserialization failed.");
throw new IllegalStateException("Inbound deserialization failed. Stopping further processing of records.");
}
else if (kstreamBinderConfigurationProperties.getSerdeError() == KafkaStreamsBinderConfigurationProperties.SerdeError.logAndContinue) {
//quietly pass through. No action needed, this is similar to log and continue.
//quietly passing through. No action needed, this is similar to log and continue.
LOG.error("Inbound deserialization failed. Skipping this record and continuing.");
}
}
}