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-24020][web] Aggregate HTTP requests before custom netty handers are getting the data #17022
Conversation
cc @gyfora |
Thanks a lot for your contribution to the Apache Flink project. I'm the @flinkbot. I help the community Automated ChecksLast check on commit f954017 (Fri Aug 27 11:29:24 UTC 2021) Warnings:
Mention the bot in a comment to re-run the automated checks. Review Progress
Please see the Pull Request Review Guide for a full explanation of the review process. The Bot is tracking the review progress through labels. Labels are applied according to the order of the review items. For consensus, approval by a Flink committer of PMC member is required Bot commandsThe @flinkbot bot supports the following commands:
|
@flinkbot run azure |
The HistoryServerTest is getting stuck on CI which is likely caused by this PR. |
@zentol having a look... |
The last issue is unrelated:
|
@flinkbot run azure |
You need to rebase the branch to fix the libssl issue. |
dd573c4
to
f35088a
Compare
@zentol thanks for the guidance, just did it. |
@flinkbot approve all |
…s are getting the data Closes apache#17022
…s are getting the data Closes apache#17022
What is the purpose of the change
Custom netty handlers can do authentication (amongst other possibilities).
This requires that the handlers are getting the whole HttpRequest content and not just partial data.
At the moment it's not implemented this way which ends-up in flaky behaviour.
Namely sometimes for example History server responds properly (when the request fits into one netty chunk) but sometimes authentication fails (when the request split into multiple netty chunks).
In this PR I've moved/added
FlinkHttpObjectAggregator
before custom netty handlers.Brief change log
FlinkHttpObjectAggregator
inWebFrontendBootstrap
before custom netty handlers.FlinkHttpObjectAggregator
inRestServerEndpoint
before custom netty handlers.Important note that upload handlers are streaming the uploadable content so they must be before
FlinkHttpObjectAggregator
.Verifying this change
Does this pull request potentially affect one of the following parts:
@Public(Evolving)
: noDocumentation