-
Notifications
You must be signed in to change notification settings - Fork 9.1k
HADOOP-18560. AvroFSInput opens a stream twice and discards the second one without closing #5186
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
Merged
steveloughran
merged 1 commit into
apache:trunk
from
steveloughran:s3/HADOOP-18560-avro-open
Dec 6, 2022
Merged
HADOOP-18560. AvroFSInput opens a stream twice and discards the second one without closing #5186
steveloughran
merged 1 commit into
apache:trunk
from
steveloughran:s3/HADOOP-18560-avro-open
Dec 6, 2022
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
…d one without closing Change-Id: Ide6b2deee21e38dff2d746e986653c3f5ecdc589
cnauroth
approved these changes
Dec 5, 2022
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
+1, pending CI run. @steveloughran , thank you for the fix.
💔 -1 overall
This message was automatically generated. |
thanks chris. was my fault in the first place though -don't thank me too much |
asfgit
pushed a commit
that referenced
this pull request
Dec 6, 2022
…d one without closing (#5186) This is needed for branches with the hadoop-common changes of HADOOP-16202. Enhanced openFile()
asfgit
pushed a commit
that referenced
this pull request
Dec 6, 2022
…d one without closing (#5186) This is needed for branches with the hadoop-common changes of HADOOP-16202. Enhanced openFile()
slfan1989
pushed a commit
to slfan1989/hadoop
that referenced
this pull request
Dec 20, 2022
…d one without closing (apache#5186) This is needed for branches with the hadoop-common changes of HADOOP-16202. Enhanced openFile()
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description of PR
removes a needless line in
AvroFSInput(final FileContext fc, final Path p
which opens the path a second time and discards the result.on input streams which immediately set up a connection with the store, this can leak connections.
Note, this is through the FileContext constructor, which is only used in production in org.apache.hadoop.fs.shell.Display, which being used from the command line, shouldn't be a long-lived process
How was this patch tested?
going to see what yetus says.
For code changes:
LICENSE
,LICENSE-binary
,NOTICE-binary
files?