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-4096] Ensure JarOutputStream is always closed #2172

Closed
wants to merge 1 commit into from

Conversation

mushketyk
Copy link
Contributor

Thanks for contributing to Apache Flink. Before you open your pull request, please take the following check list into consideration.
If your changes take all of the items into account, feel free to open your pull request. For more information and/or questions please refer to the How To Contribute guide.
In addition to going through the list, please provide a meaningful description of your changes.

  • General
    • The pull request references the related JIRA issue ("[FLINK-XXX] Jira title text")
    • The pull request addresses only one issue
    • Each commit in the PR has a meaningful commit message (including the JIRA id)
  • Documentation
    • Documentation has been added for new functionality
    • Old documentation affected by the pull request has been updated
    • JavaDoc for public methods has been added
  • Tests & Build
    • Functionality added by the pull request is covered by tests
    • mvn clean verify has been executed successfully locally or a Travis build has passed

}
jos.close();
Copy link
Contributor

Choose a reason for hiding this comment

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

close() is now never called.

@mushketyk
Copy link
Contributor Author

Since jos is now used in try-with-resource, I assume it will be called in any case:
https://github.com/apache/flink/pull/2172/files#diff-966966a476efb23e920314f9bf266539R192

Am I missing something?

@zentol
Copy link
Contributor

zentol commented Jul 10, 2016

no, you are correct.

@mushketyk
Copy link
Contributor Author

@zentol Can you merge this PR if you find it useful?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants