Return-Path: Delivered-To: apmail-lucene-hadoop-dev-archive@locus.apache.org Received: (qmail 20869 invoked from network); 26 Nov 2007 23:37:04 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 26 Nov 2007 23:37:04 -0000 Received: (qmail 96508 invoked by uid 500); 26 Nov 2007 23:36:51 -0000 Delivered-To: apmail-lucene-hadoop-dev-archive@lucene.apache.org Received: (qmail 96473 invoked by uid 500); 26 Nov 2007 23:36:51 -0000 Mailing-List: contact hadoop-dev-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: hadoop-dev@lucene.apache.org Delivered-To: mailing list hadoop-dev@lucene.apache.org Received: (qmail 96463 invoked by uid 99); 26 Nov 2007 23:36:51 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 26 Nov 2007 15:36:51 -0800 X-ASF-Spam-Status: No, hits=-100.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO brutus.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 26 Nov 2007 23:36:40 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 25A1C714208 for ; Mon, 26 Nov 2007 15:36:43 -0800 (PST) Message-ID: <30463811.1196120203151.JavaMail.jira@brutus> Date: Mon, 26 Nov 2007 15:36:43 -0800 (PST) From: "Sameer Paranjpye (JIRA)" To: hadoop-dev@lucene.apache.org Subject: [jira] Commented: (HADOOP-2188) RPC should send a ping rather than use client timeouts In-Reply-To: <3313086.1194715790717.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/HADOOP-2188?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12545646 ] Sameer Paranjpye commented on HADOOP-2188: ------------------------------------------ Does the server side continue to have a timeout? Seems like it should, badly behaved clients could cause a server brownout by sending RPCs, never reading the responses and so occupying all the handlers. > RPC should send a ping rather than use client timeouts > ------------------------------------------------------ > > Key: HADOOP-2188 > URL: https://issues.apache.org/jira/browse/HADOOP-2188 > Project: Hadoop > Issue Type: Improvement > Components: ipc > Reporter: Owen O'Malley > Assignee: Owen O'Malley > Fix For: 0.16.0 > > Attachments: rpc-to.patch > > > Current RPC (really IPC) relies on client side timeouts to find "dead" sockets. I propose that we have a thread that once a minute (if the connection has been idle) writes a "ping" message to the socket. The client can detect a dead socket by the resulting error on the write, so no client side timeout is required. Also note that the ipc server does not need to respond to the ping, just discard it. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.