[
https://issues.apache.org/jira/browse/HADOOP-18238?focusedWorklogId=772198&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-772198
]
ASF GitHub Bot logged work on HADOOP-18238:
-------------------------------------------
Author: ASF GitHub Bot
Created on: 19/May/22 01:24
Start Date: 19/May/22 01:24
Worklog Time Spent: 10m
Work Description: ashutoshcipher opened a new pull request, #4330:
URL: https://github.com/apache/hadoop/pull/4330
### Description of PR
Fix reentrancy check in SFTPFileSystem.close()
* JIRA: HADOOP-18238
- [x] Does the title or this PR starts with the corresponding JIRA issue id
(e.g. 'HADOOP-17799. Your PR title ...')?
Issue Time Tracking
-------------------
Worklog Id: (was: 772198)
Remaining Estimate: 0h
Time Spent: 10m
> Hadoop 3.3.1 SFTPFileSystem.close() method have problem
> -------------------------------------------------------
>
> Key: HADOOP-18238
> URL: https://issues.apache.org/jira/browse/HADOOP-18238
> Project: Hadoop Common
> Issue Type: Bug
> Components: common
> Affects Versions: 3.3.1
> Reporter: yi liu
> Priority: Major
> Time Spent: 10m
> Remaining Estimate: 0h
>
> @Override
> public void close() throws IOException {
> if (closed.getAndSet(true)) {
> return;
> }
> try {
> super.close();
> } finally {
> if (connectionPool != null) {
> connectionPool.shutdown();
> }
> }
> }
>
> if you exe this method ,the fs can not exec deleteOnExsist method,because
> the fs is closed.
> 如果手动调用,sftp fs执行close方法关闭连接池,让jvm能正常退出,deleteOnExsist
> 将因为fs已关闭无法执行成功。如果不关闭,则连接池不会释放,jvm不能退出。
> https://issues.apache.org/jira/browse/HADOOP-17528,这是3.2.0 sftpfilesystem的问题
>
--
This message was sent by Atlassian Jira
(v8.20.7#820007)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]