hadoop-common-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Daryn Sharp (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HADOOP-11295) RPC Server Reader thread can't shutdown if RPCCallQueue is full
Date Mon, 05 Jan 2015 22:54:35 GMT

    [ https://issues.apache.org/jira/browse/HADOOP-11295?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14265270#comment-14265270

Daryn Sharp commented on HADOOP-11295:

Per #2 in the description, I haven't thought about it too hard, but should we consider a more
graceful shutdown?  Close the listener, and interrupt the readers, interrupt the handlers?

> RPC Server Reader thread can't shutdown if RPCCallQueue is full
> ---------------------------------------------------------------
>                 Key: HADOOP-11295
>                 URL: https://issues.apache.org/jira/browse/HADOOP-11295
>             Project: Hadoop Common
>          Issue Type: Bug
>            Reporter: Ming Ma
>            Assignee: Ming Ma
>         Attachments: HADOOP-11295-2.patch, HADOOP-11295-3.patch, HADOOP-11295-4.patch,
HADOOP-11295-5.patch, HADOOP-11295.patch
> If RPC server is asked to stop when RPCCallQueue is full, {{reader.join()}} will just
wait there. That is because
> 1. The reader thread is blocked on {{callQueue.put(call);}}.
> 2. When RPC server is asked to stop, it will interrupt all handler threads and thus no
threads will drain the callQueue.

This message was sent by Atlassian JIRA

View raw message