Skip to content

[Backport] Fix uncaught ParseException when reading Avro from Kafka (#14183)#14212

Merged
abhishekagarwal87 merged 1 commit intoapache:26.0.0from
abhishekrb19:backport-uncaught-parse-exc-fix
May 5, 2023
Merged

[Backport] Fix uncaught ParseException when reading Avro from Kafka (#14183)#14212
abhishekagarwal87 merged 1 commit intoapache:26.0.0from
abhishekrb19:backport-uncaught-parse-exc-fix

Conversation

@abhishekrb19
Copy link
Copy Markdown
Contributor

Backport of #14183 to 26.0.0.

)

In StreamChunkParser#parseWithInputFormat, we call byteEntityReader.read() without handling a potential ParseException, which is thrown during this function call by the delegate AvroStreamReader#intermediateRowIterator.
A ParseException can be thrown if an Avro stream has corrupt data or data that doesn't conform to the schema specified or for other decoding reasons. This exception if uncaught, can cause ingestion to fail.
@abhishekagarwal87 abhishekagarwal87 merged commit a42893e into apache:26.0.0 May 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants