[ 
https://issues.apache.org/jira/browse/HADOOP-17334?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18043712#comment-18043712
 ] 

ASF GitHub Bot commented on HADOOP-17334:
-----------------------------------------

github-actions[bot] commented on PR #2420:
URL: https://github.com/apache/hadoop/pull/2420#issuecomment-3629625116

   We're closing this stale PR because it has been open for 100 days with no 
activity. This isn't a judgement on the merit of the PR in any way. It's just a 
way of keeping the PR queue manageable.
   If you feel like this was a mistake, or you would like to continue working 
on it, please feel free to re-open it and ask for a committer to remove the 
stale tag and review again.
   Thanks all for your contribution.




> CosNInputStream should throw exception when filesystem is closed
> ----------------------------------------------------------------
>
>                 Key: HADOOP-17334
>                 URL: https://issues.apache.org/jira/browse/HADOOP-17334
>             Project: Hadoop Common
>          Issue Type: Improvement
>          Components: fs, fs/cos
>    Affects Versions: 3.3.0
>            Reporter: steven zhang
>            Priority: Minor
>              Labels: pull-request-available
>          Time Spent: 20m
>  Remaining Estimate: 0h
>
> Thread hangs when other thread call filesystem.close(). log as below
> 971  [main] INFO  org.apache.hadoop.fs.cosn.CosNFileSystem  - Open the file: 
> [cosn://bigdata-test
> 1075 [main] ERROR org.apache.hadoop.util.BlockingThreadPoolExecutorService  - 
> Could not submit task to executor java.util.concurrent.ThreadPoolExecutor
> the reason of thread hangs is :
>  # filesystem is cached when multiple thread using FileSystem#get method for 
> creating instance
>  # CosNInputStream#read method is not check CosNFileSystem is closed
>  # CosNInputStream is using multiple thread(CosNFileReadTask) for read and 
> main thread will await when readbuffer status is init
>  # CosNFileSystem#close method will shutdown boundedIOThreadPool . so 
> CosNInputStream#CosNFileReadTask will not notify main thread and cause thread 
> hangs
>  
>  



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to