Details
-
Sub-task
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
3.5.0
Description
rayokota found some NullPointerExceptions that originate because of a recently introduced error in the KafkaConsumer constructor. The code was changed to pass the deserializer variables into the FetchConfig constructor. However, this code change incorrectly used the locally-scoped variables, not the instance-scoped variables. Since the locally-scoped variables could be null, this results in the FetchConfig storing null references, leading to downstream breakage.
Suggested change:
- FetchConfig<K, V> fetchConfig = new FetchConfig<>(config, keyDeserializer, valueDeserializer, isolationLevel); + FetchConfig<K, V> fetchConfig = new FetchConfig<>(config, this.keyDeserializer, this.valueDeserializer, isolationLevel);
Attachments
Issue Links
- is caused by
-
KAFKA-14365 Extract common logic from Fetcher
- Resolved
- links to