Return-Path: Delivered-To: apmail-hadoop-common-issues-archive@minotaur.apache.org Received: (qmail 98822 invoked from network); 21 Jan 2011 09:15:11 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 21 Jan 2011 09:15:11 -0000 Received: (qmail 36109 invoked by uid 500); 21 Jan 2011 09:15:10 -0000 Delivered-To: apmail-hadoop-common-issues-archive@hadoop.apache.org Received: (qmail 35914 invoked by uid 500); 21 Jan 2011 09:15:07 -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 35906 invoked by uid 99); 21 Jan 2011 09:15:06 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 21 Jan 2011 09:15:06 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.22] (HELO thor.apache.org) (140.211.11.22) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 21 Jan 2011 09:15:05 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id p0L9EiPG008572 for ; Fri, 21 Jan 2011 09:14:45 GMT Message-ID: <12124667.101701295601284897.JavaMail.jira@thor> Date: Fri, 21 Jan 2011 04:14:44 -0500 (EST) From: "Hadoop QA (JIRA)" To: common-issues@hadoop.apache.org Subject: [jira] Commented: (HADOOP-7086) Retrying socket connection failure times can be made as configurable In-Reply-To: <1687965.159931294234907446.JavaMail.jira@thor> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/HADOOP-7086?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12984635#action_12984635 ] Hadoop QA commented on HADOOP-7086: ----------------------------------- +1 overall. Here are the results of testing the latest attachment http://issues.apache.org/jira/secure/attachment/12468959/common-3899.patch against trunk revision 1060632. +1 @author. The patch does not contain any @author tags. +1 tests included. The patch appears to include 3 new or modified tests. +1 javadoc. The javadoc tool did not generate any warning messages. +1 javac. The applied patch does not increase the total number of javac compiler warnings. +1 findbugs. The patch does not introduce any new Findbugs (version 1.3.9) warnings. +1 release audit. The applied patch does not increase the total number of release audit warnings. +1 core tests. The patch passed core unit tests. +1 contrib tests. The patch passed contrib unit tests. +1 system test framework. The patch passed system test framework compile. Test results: https://hudson.apache.org/hudson/job/PreCommit-HADOOP-Build/192//testReport/ Findbugs warnings: https://hudson.apache.org/hudson/job/PreCommit-HADOOP-Build/192//artifact/trunk/build/test/findbugs/newPatchFindbugsWarnings.html Console output: https://hudson.apache.org/hudson/job/PreCommit-HADOOP-Build/192//console This message is automatically generated. > 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 > Affects Versions: 0.21.0 > Environment: NA > Reporter: Devaraj K > Priority: Minor > Attachments: 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. - You can reply to this email to add a comment to the issue online.