Skip to content

Invalid Avro header does not raise error event #448

@craxal

Description

@craxal

I discovered some mysterious behavior while using BlockDecoder. If the header is invalid (!tap.isVaid()), the stream does not raise an error event. Instead, it just returns.

This was confusing, because I was expecting an error event that I could process. I can work around this by listening for the "metadata" event and storing the parsed schema in a variable then testing to see if this variable is defined when the stream ends.

I'm not sure if this is intended behavior, but I would prefer if any invalid input would raise an error that can be handled rather than silently completing.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions