Felix Angell
08/25/2023, 3:22 PM2023-08-25 16:14:17
java.io.IOException: Failed to deserialize consumer record due to
Caused by: org.apache.flink.streaming.runtime.tasks.ExceptionInChainedOperatorException: Could not forward element to next operator
...
Caused by: org.apache.flink.streaming.runtime.tasks.ExceptionInChainedOperatorException: Could not forward element to next operator
...
Caused by: com.esotericsoftware.kryo.KryoException: java.lang.UnsupportedOperationException
...
Serialization trace:
links_ (xxxxxxxxxxx.messages.common.CommonOuter$MessageMetadata)
Caused by: java.lang.UnsupportedOperationException
at java.base/java.util.Collections$UnmodifiableCollection.add(Collections.java:1060)
at com.esotericsoftware.kryo.serializers.CollectionSerializer.read(CollectionSerializer.java:109)
at com.esotericsoftware.kryo.serializers.CollectionSerializer.read(CollectionSerializer.java:22)
at com.esotericsoftware.kryo.Kryo.readObject(Kryo.java:679)
at com.esotericsoftware.kryo.serializers.ObjectField.read(ObjectField.java:106)
... 35 more
...
not entirely sure what operator this happens in but i think it's the first op. where i consume a message from kafka and try to serialize from bytes into a protobuf object.Felix Angell
08/25/2023, 3:23 PMFelix Angell
08/25/2023, 3:51 PMFelix Angell
08/25/2023, 3:52 PMFelix Angell
08/25/2023, 3:58 PMAri Huttunen
08/25/2023, 5:43 PMAri Huttunen
08/25/2023, 5:45 PMFelix Angell
08/26/2023, 1:52 PMFelix Angell
08/26/2023, 2:04 PMFelix Angell
08/26/2023, 2:39 PMKafkaRecordEmitter.emitRecord(KafkaRecordEmitter.java:56)looks like this is invoked on reading a kafka record i.e. on my KafkaSource? i have something that basically passes the message as byte[]
Felix Angell
08/26/2023, 2:40 PM.setValueOnlyDeserializer(new KafkaBytesDeserializer()) which is implements DeserializationSchema<byte[]>. so just outputs the raw byte[] messageFelix Angell
08/26/2023, 3:24 PMbyte[] -> MyProtobufMessage.Felix Angell
08/26/2023, 3:24 PM