[prev in list] [next in list] [prev in thread] [next in thread]
List: hadoop-dev
Subject: [jira] [Created] (HADOOP-17334) CosNInputStream should throw exception when filesystem is closed
From: "steven zhang (Jira)" <jira () apache ! org>
Date: 2020-10-28 6:38:00
Message-ID: JIRA.13337583.1603867036000.103559.1603867080061 () Atlassian ! JIRA
[Download RAW message or body]
steven zhang created HADOOP-17334:
-------------------------------------
Summary: CosNInputStream should throw exception when filesyste=
m 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
Thread hangs when other thread call filesystem.close(). log as below
971=C2=A0 [main] INFO=C2=A0 org.apache.hadoop.fs.cosn.CosNFileSystem=C2=A0 =
- Open the file: [cosn://bigdata-test
1075 [main] ERROR org.apache.hadoop.util.BlockingThreadPoolExecutorService=
=C2=A0 - Could not submit task to executor java.util.concurrent.ThreadPoolE=
xecutor
the thread hangs reason is :
# filesystem is cached when multiple thread using=C2=A0FileSystem#get meth=
od for creating instance
# CosNInputStream#read method is not check=C2=A0CosNFileSystem is closed
# CosNInputStream is using multiple thread(CosNFileReadTask) for read and =
main thread will=C2=A0await when readbuffer status is init
# CosNFileSystem#close method will shutdown boundedIOThreadPool . so=C2=A0=
CosNInputStream#CosNFileReadTask will not notify=C2=A0main thread and cause=
=C2=A0thread hangs
so CosNInputStream should throw exception when filesystem is closed
=C2=A0
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: common-dev-unsubscribe@hadoop.apache.org
For additional commands, e-mail: common-dev-help@hadoop.apache.org
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic