-
Notifications
You must be signed in to change notification settings - Fork 9.1k
HADOOP-17528. SFTP File System: close the connection pool when closing a FileSystem #2701
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. |
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, just added a little bit of extra homework on the test case so we get the full due diligence on that close() call done. thanks
...common-project/hadoop-common/src/test/java/org/apache/hadoop/fs/sftp/TestSFTPFileSystem.java
Show resolved
Hide resolved
💔 -1 overall
This message was automatically generated. |
💔 -1 overall
This message was automatically generated. |
@steveloughran
Here's a cause for this to happen. This happened straight after substituting findbugs with spotbugs here @aajisaka could you please help to fix the build? |
Reverted #2454 |
🎊 +1 overall
This message was automatically generated. |
🎊 +1 overall
This message was automatically generated. |
@aajisaka thanks you so much. |
+1, merged to trunk |
…g a FileSystem (#2701) Contributed by Mike Pryakhin. Change-Id: I59ef67c38c313f30c5e000b2fe41fcf715cf3a4b
…g a FileSystem (apache#2701) Contributed by Mike Pryakhin.
SFTPFileSystem
leverages a connection pool which is not closed when a file system instance gets closed preventing a JVM from exiting as every established SFTP connection runs in a separate non-daemon thread. This PR fixesSFTPFileSystem
closure.