GitHub user zentol opened a pull request:

    https://github.com/apache/flink/pull/3896

    [FLINK-6370] [webUI] Handle races for single file in FileServerHandler

    This PR prevents a race between multiple requests trying to create the same 
file, which previously would cause one request to fail.
    
    We can't just ignore the `FileAlreadyExistsException` since there's no 
guarantee that the file copying is complete. To prevent this scenario the 
copying is now done in a `synchronized` block, along with ignoring the 
`FileAlreadyExistsExceptions`.
    
    Due to the small size of files loaded from the class-loader this should 
have no impact on the responsiveness of the webUI.

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/zentol/flink 6370_web_file

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/flink/pull/3896.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 #3896
    
----
commit 4ebee58fa8c39d0aa6d68d1470ea3a850e92b954
Author: zentol <[email protected]>
Date:   2017-05-14T19:57:16Z

    [FLINK-6370] [webUI] Handle races for single file in FileServerHandler

----


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

Reply via email to