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
After upgrading from Spring Boot 2.5.6 to 2.6.1 we noticed, that the @KafkaListener doesnt respect the containerFactory setting anymore.
In the particular case, we werent able to consume non schema registry topics anymore as the ContainerFactory with the overwritten Deserializer werent used and instead the Default Deserializer (AvroDeSerializer) was used.
I werent able to pinpoint the issue exactly, but was able to make a small demo project with which you are able to reproduce the issue.
Exception thrown (Unknown Magic Byte by Avro Serializer, allthough JsonSerializer is specified in KafkaConsumerConfig#showPublishedConsumerFactory which is used by the @KafkaListener annotation
If you change spring boot version to 2.5.7 (or switch to working branch), everything works as expected and in step 4. instead of an exception, the show is logged to console.
I hope my description is clear enough, to reproduce the issue.