GitHub user zentol opened a pull request:
https://github.com/apache/flink/pull/6270
[FLINK-9769][rest] Clear FileUpload attribute after access
## What is the purpose of the change
Prevents a resource leakage by clearing the `UPLOADED_FILES` attribute
after accessing it.
Previously it could happen that a handler might see the result of a file
upload operation if it happened to be sharing the same channel. In this case
said files were already cleaned up, leading to `FileNotFoundExceptions`.
## Verifying this change
Manually verified. Submit a job via the Web UI, no exception should be
logged.
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/zentol/flink 9769
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/flink/pull/6270.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 #6270
commit 56af2054970dc3282b28dfc8cac4b0a4142bf1ab
Author: zentol
Date: 2018-07-05T21:28:47Z
[FLINK-9769][rest] Clear FileUpload attribute after access
---