hadoop-common-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Steve Loughran (JIRA)" <j...@apache.org>
Subject [jira] Updated: (HADOOP-6221) RPC.WaitForProxy swallows InterruptedException
Date Thu, 24 Dec 2009 15:24:29 GMT

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

Steve Loughran updated HADOOP-6221:

    Attachment: HADOOP-6221.patch

Tests show this problem is harder than it appears, even with improved Interrupt support during
the sleep(), you can't interrupt the client while it is actually waiting to connect, that
gets swallowed somewhere too. The test case shows this; a thread that tries to wait for 20s
for a connection, but which is interrupted in another thread never sees the interrupt, instead
after 20s it times out and throws the ConnectionRefused fault. What I'd like would be the
interrupt acknowledged with the inner exception nested, and for the operation to fail as soon
as the thread is interrupted.

> RPC.WaitForProxy swallows InterruptedException
> ----------------------------------------------
>                 Key: HADOOP-6221
>                 URL: https://issues.apache.org/jira/browse/HADOOP-6221
>             Project: Hadoop Common
>          Issue Type: Bug
>          Components: ipc
>            Reporter: Steve Loughran
>            Assignee: Steve Loughran
>         Attachments: HADOOP-6221.patch
> RPC.waitForProxy swallows any attempts to interrupt it while waiting for a proxy; this
makes it hard to shutdown a service that you are starting; you have to wait for the timeouts.

> There are only 4-5 places in the code that use either of the two overloaded methods,
removing the catch and changing the signature should not be too painful, unless anyone is
using the method outside the hadoop codebase. 

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

View raw message