Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FLINK-32888] Handle hasNext() throwing EndOfDataDecoderException #23229

Merged
merged 2 commits into from
Aug 18, 2023

Conversation

zentol
Copy link
Contributor

@zentol zentol commented Aug 17, 2023

HttpPostRequestDecoder#hasNext() throws an EndOfDataDecoderException when called if all attributes were already read. There is apparently an edge-case where the a non empty HttpContent is received, but we already retrieved all attributes (so I guess it's just multipart metadata).

We now assume that this isn't a problem; if it is the application layer should notice it (e.g., if a file/attribute is missing).

@flinkbot
Copy link
Collaborator

flinkbot commented Aug 17, 2023

CI report:

Bot commands The @flinkbot bot supports the following commands:
  • @flinkbot run azure re-run the last Azure build

@zentol zentol requested review from XComp and dmvk August 18, 2023 08:38
Copy link
Member

@dmvk dmvk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🤩

This _probably_ happens when a non-empty http content is received that does not contain any attribute data.
@zentol zentol merged commit 9546f82 into apache:master Aug 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
4 participants