You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-issues@hadoop.apache.org by "ASF GitHub Bot (Jira)" <ji...@apache.org> on 2020/10/28 07:54:00 UTC

[jira] [Work logged] (HADOOP-17334) CosNInputStream should throw exception when filesystem is closed

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

ASF GitHub Bot logged work on HADOOP-17334:
-------------------------------------------

                Author: ASF GitHub Bot
            Created on: 28/Oct/20 07:53
            Start Date: 28/Oct/20 07:53
    Worklog Time Spent: 10m 
      Work Description: yui2010 opened a new pull request #2420:
URL: https://github.com/apache/hadoop/pull/2420


   …s closed
   
   ## NOTICE
   
   Please create an issue in ASF JIRA before opening a pull request,
   and you need to set the title of the pull request which starts with
   the corresponding JIRA issue number. (e.g. HADOOP-XXXXX. Fix a typo in YYY.)
   For more details, please see https://cwiki.apache.org/confluence/display/HADOOP/How+To+Contribute
   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Issue Time Tracking
-------------------

            Worklog Id:     (was: 505607)
    Remaining Estimate: 0h
            Time Spent: 10m

> 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
>          Time Spent: 10m
>  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 thread hangs reason 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
> so CosNInputStream should throw exception when filesystem is closed
>  



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: common-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: common-issues-help@hadoop.apache.org