-
Couldn't load subscription status.
- Fork 9.1k
HDFS-15908. Possible Resource Leak in org.apache.hadoop.hdfs.qjournal.server.Journal #2790
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
Conversation
|
💔 -1 overall
This message was automatically generated. |
| */ | ||
| @Override // Closeable | ||
| public void close() throws IOException { | ||
| storage.close(); |
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.
This is because it can throw IOException?
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.
Yes, exactly. If it throws an exception, then committedTxnId and curSegment are never closed.
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 (non-binding)
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.
LGTM
Have triggered the tests again
|
💔 -1 overall
This message was automatically generated. |
|
Thanx @Nargeshdb for the contribution and @virajjasani for the review!!! |
….server.Journal (#2790). Contributed by Narges Shadab. Signed-off-by: Ayush Saxena <[email protected]> (cherry picked from commit d77c7ab)
….server.Journal (apache#2790). Contributed by Narges Shadab. Signed-off-by: Ayush Saxena <[email protected]>
This PR fixes the issue mentioned here.