[ 
https://issues.apache.org/jira/browse/HDFS-10468?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Jing Zhao updated HDFS-10468:
-----------------------------
    Attachment: HDFS-10468.002.patch

Thanks for the review, [~iwasakims]. I agree there are still many places in 
DFSInputStream that have not correctly handle the interrupt. But considering 
the current complexity of the DFSInputStream code, I do not plan to fix all of 
them in this jira. To achieve that we may also need to do more code 
refactoring.  Maybe we can create an umbrella jira for this later.

I did another quick skim of the current DFSInputStream code and fixed several 
other places. Uploaded 002 patch.

> HDFS read ends up ignoring an interrupt
> ---------------------------------------
>
>                 Key: HDFS-10468
>                 URL: https://issues.apache.org/jira/browse/HDFS-10468
>             Project: Hadoop HDFS
>          Issue Type: Bug
>            Reporter: Siddharth Seth
>            Assignee: Jing Zhao
>         Attachments: HDFS-10468.000.patch, HDFS-10468.001.patch, 
> HDFS-10468.002.patch, log
>
>
> If an interrupt comes in during an HDFS read - it looks like HDFS ends up 
> ignoring it (handling it), and retries the read after an interval.
> An interrupt should result in the read being cancelled, with an 
> InterruptedException being thrown.
> Similarly - if an HDFS op is started with the interrupt status on the thread 
> set, an InterruptedException should be thrown.
> cc [~jingzhao]



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

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

Reply via email to