You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-dev@hadoop.apache.org by "Raghu Angadi (JIRA)" <ji...@apache.org> on 2008/04/17 02:57:27 UTC

[jira] Updated: (HADOOP-3008) SocketIOWithTimeout does not handle thread interruption

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

Raghu Angadi updated HADOOP-3008:
---------------------------------

     Description: 
If a thread is waiting in {{SocketIOWithTimeout.select()}} for IO and is interrupted by another thread, select() returns zero. But current implementation does not check if the thread is interrupted and goes back to waiting. But it should check if the thread is interrupted.

In this case, I am thinking of throwing {{InterruptedIOException}} http://java.sun.com/j2se/1.5.0/docs/api/java/io/InterruptedIOException.html.

  was:

If a thread is waiting in {{SocketIOWithTimeout.select()}} for IO and is interrupted by another thread, select() returns zero. But current implementation does not check if the thread is interrupted and goes back to waiting. But it should check if the thread is interrupted.

In this case, I am thinking of throwing {{InterruptedIOException}} http://java.sun.com/j2se/1.5.0/docs/api/java/io/InterruptedIOException.html.

    Release Note: User Impact : none. SocketIOWithTimeout does not handle thread interruption

> SocketIOWithTimeout does not handle thread interruption
> -------------------------------------------------------
>
>                 Key: HADOOP-3008
>                 URL: https://issues.apache.org/jira/browse/HADOOP-3008
>             Project: Hadoop Core
>          Issue Type: Bug
>    Affects Versions: 0.17.0
>            Reporter: Raghu Angadi
>            Assignee: Raghu Angadi
>             Fix For: 0.17.0
>
>         Attachments: HADOOP-3008.patch, HADOOP-3008.patch, HADOOP-3008.patch, HADOOP-3008.patch
>
>
> If a thread is waiting in {{SocketIOWithTimeout.select()}} for IO and is interrupted by another thread, select() returns zero. But current implementation does not check if the thread is interrupted and goes back to waiting. But it should check if the thread is interrupted.
> In this case, I am thinking of throwing {{InterruptedIOException}} http://java.sun.com/j2se/1.5.0/docs/api/java/io/InterruptedIOException.html.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.