GitHub user zentol opened a pull request: https://github.com/apache/flink/pull/6220
[FLINK-9677][rest] Cleanup encoder after request has been processed Backport of #6217. The `FileUploadHandler` may reject requests before they have been fully received, either due to an exception or because of an unknown attribute. With netty 4.1 this doesn't cause issues, but in 4.0 trailing HTTP contents still have to be handled. Since we reset the handler when encountering an error this content was forwarded to the next handler which crashed the http aggregator. This PR introduces a flag such that all http contents are swallowed after a failure, until a new `HttpRequest` is received. @tillrohrmann You can merge this pull request into a Git repository by running: $ git pull https://github.com/zentol/flink 9677_15 Alternatively you can review and apply these changes as the patch at: https://github.com/apache/flink/pull/6220.patch To close this pull request, make a commit to your master/trunk branch with (at least) the following in the commit message: This closes #6220 ---- commit 3ef17b389ccb0d7694a166756b003f1970c40df2 Author: zentol <chesnay@...> Date: 2018-06-27T07:34:34Z [FLINK-9677][rest] Cleanup encoder after request has been processed ---- ---