Details
-
Bug
-
Status: Resolved
-
Blocker
-
Resolution: Fixed
-
1.14.0, 1.14.1, 1.15.0
Description
Currently Kafka source deserializes ConsumerRecords in split reader and puts them into the elementQueue, then task's main thread polls these records from the queue asynchronously. This mechanism cannot cooperate with DeserializationSchemas with object reuse: all records staying in the element queue points to the same object.
A solution would be moving deserialization to RecordEmitter, which works in the task's main thread.
Notes that this issue actually effects all sources which do deserialization in split reader.
Attachments
Issue Links
- causes
-
FLINK-32303 Incorrect error message in KafkaSource
- Open
- relates to
-
FLINK-28083 PulsarSource cannot work with object-reusing DeserializationSchema.
- Closed
- links to