Enhancement
Critical
Major
Detail
Detail
Detail
#25928
Invalid configurations for Producer and Consumer
The implementation com.top_logic.kafka.services.common.KafkaCommonClient, on which TLKafkaProducer as well as ConsumerDispatcher are based, translates the typed configuration into Kafka-Properties by means of getTypedProperties(), by packing all properties with the KafkaClientProperty annotation from their values into a Map<String, Object>.
However, if neither a default nor an explicit configuration value was entered for such a property, the value null ends up in the map. Both KafkaProducer and KafkaConsumer interpret these values as existing - even if they are null - and try to do something with them. This leads to completely undefined behavior.
=== Suggested solution The map generated by getTypedProperties() must only contain entries whose value is not null.
Test
No test.