Hygor Knust
06/17/2023, 6:08 PM*.ignore-parse-errors , but it is not available for Avro.Martijn Visser
06/17/2023, 6:09 PMHygor Knust
06/17/2023, 6:11 PMCaused by: java.io.IOException: Failed to deserialize consumer record ConsumerRecord(topic = [...], partition = 1, leaderEpoch = 118, offset = 274419, CreateTime = 1686247521172, serialized key size = 2, serialized value size = 124, headers = RecordHeaders(headers = [], isReadOnly = false), key = [B@1a2d3710, value = [B@587f5aed).Martijn Visser
06/17/2023, 6:13 PMMartijn Visser
06/17/2023, 6:14 PMHygor Knust
06/17/2023, 6:21 PMMartijn Visser
06/17/2023, 6:21 PMMartijn Visser
06/17/2023, 6:22 PMMartijn Visser
06/17/2023, 6:22 PMHygor Knust
06/17/2023, 6:32 PMMartijn Visser
06/17/2023, 7:16 PMMartijn Visser
06/17/2023, 7:17 PMAK
06/18/2023, 7:34 AMignore-parse-errors . So either there is configuration issue or some producers pushed the message without schema registry (say a simple console push from your local). The simple option is to use the simple hello world consumer from that message offset and then decode using the same schema or debug from there.
In any case, if you want to retain the Flink state, as there is no other option for you to skip, you can try any of the following,
1. Patch something like this - this is for plain Avro, for confluent it should be similar under ConfluentRegistryAvroDeserializationSchema
2. Just simply delete the message from Kafka like this using console scripts (Section Option 2: Record Deletion)
If you don't want the Flink stat, then just do a fresh start again just right after the faulty message.Hygor Knust
06/18/2023, 1:29 PM