Return-Path: X-Original-To: apmail-hadoop-common-issues-archive@minotaur.apache.org Delivered-To: apmail-hadoop-common-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id EE8F9776A for ; Mon, 1 Aug 2011 15:04:35 +0000 (UTC) Received: (qmail 49094 invoked by uid 500); 1 Aug 2011 15:04:35 -0000 Delivered-To: apmail-hadoop-common-issues-archive@hadoop.apache.org Received: (qmail 49060 invoked by uid 500); 1 Aug 2011 15:04:35 -0000 Mailing-List: contact common-issues-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: common-issues@hadoop.apache.org Delivered-To: mailing list common-issues@hadoop.apache.org Received: (qmail 49052 invoked by uid 99); 1 Aug 2011 15:04:34 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 01 Aug 2011 15:04:34 +0000 X-ASF-Spam-Status: No, hits=-2000.7 required=5.0 tests=ALL_TRUSTED,RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 01 Aug 2011 15:04:32 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id D36F198FA0 for ; Mon, 1 Aug 2011 15:04:10 +0000 (UTC) Date: Mon, 1 Aug 2011 15:04:10 +0000 (UTC) From: "Devaraj K (JIRA)" To: common-issues@hadoop.apache.org Message-ID: <1135180843.22995.1312211050862.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <1687965.159931294234907446.JavaMail.jira@thor> Subject: [jira] [Updated] (HADOOP-7086) Retrying socket connection failure times can be made as configurable MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/HADOOP-7086?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Devaraj K updated HADOOP-7086: ------------------------------ Affects Version/s: (was: 0.21.0) > Retrying socket connection failure times can be made as configurable > -------------------------------------------------------------------- > > Key: HADOOP-7086 > URL: https://issues.apache.org/jira/browse/HADOOP-7086 > Project: Hadoop Common > Issue Type: Improvement > Components: conf > Environment: NA > Reporter: Devaraj K > Assignee: Devaraj K > Priority: Minor > Fix For: 0.23.0 > > Attachments: HADOOP-7086.patch, common-3899.patch > > Original Estimate: 72h > Remaining Estimate: 72h > > Retrying socket connection failure times are hard coded as 45 and it is giving the retryring message for 45 times as below. > 2011-01-04 15:14:30,700 INFO ipc.Client (Client.java:handleConnectionFailure(487)) - Retrying connect to server: /10.18.52.124:50020. Already tried 1 time(s). > This can be made as configurable and also we can keep the default value as 45. If the user wants to decrease/increase, they can add this configurable property otherwise it can continue with the default value. > common\src\java\org\apache\hadoop\ipc\Client.java: > ----------------------------------------------------------------------- > private synchronized void setupConnection() throws IOException { > short ioFailures = 0; > short timeoutFailures = 0; > while (true) { > try { > this.socket = socketFactory.createSocket(); > this.socket.setTcpNoDelay(tcpNoDelay); > // connection time out is 20s > NetUtils.connect(this.socket, remoteId.getAddress(), 20000); > if (rpcTimeout > 0) { > pingInterval = rpcTimeout; // rpcTimeout overwrites pingInterval > } > this.socket.setSoTimeout(pingInterval); > return; > } catch (SocketTimeoutException toe) { > /* > * The max number of retries is 45, which amounts to 20s*45 = 15 > * minutes retries. > */ > handleConnectionFailure(timeoutFailures++, 45, toe); > } catch (IOException ie) { > handleConnectionFailure(ioFailures++, maxRetries, ie); > } > } > } -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira