Return-Path: Delivered-To: apmail-hadoop-core-dev-archive@www.apache.org Received: (qmail 156 invoked from network); 7 Oct 2008 13:42:36 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 7 Oct 2008 13:42:36 -0000 Received: (qmail 62435 invoked by uid 500); 7 Oct 2008 13:42:35 -0000 Delivered-To: apmail-hadoop-core-dev-archive@hadoop.apache.org Received: (qmail 61809 invoked by uid 500); 7 Oct 2008 13:42:33 -0000 Mailing-List: contact core-dev-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: core-dev@hadoop.apache.org Delivered-To: mailing list core-dev@hadoop.apache.org Received: (qmail 61798 invoked by uid 99); 7 Oct 2008 13:42:33 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 07 Oct 2008 06:42:33 -0700 X-ASF-Spam-Status: No, hits=-1999.9 required=10.0 tests=ALL_TRUSTED,DNS_FROM_SECURITYSAGE X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 07 Oct 2008 13:41:38 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 53345234C210 for ; Tue, 7 Oct 2008 06:41:44 -0700 (PDT) Message-ID: <113785188.1223386904336.JavaMail.jira@brutus> Date: Tue, 7 Oct 2008 06:41:44 -0700 (PDT) From: "Steve Loughran (JIRA)" To: core-dev@hadoop.apache.org Subject: [jira] Created: (HADOOP-4364) IPC.Client.handleConnectionFailure should bail out if the retry count is >= the maximum, not == MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org IPC.Client.handleConnectionFailure should bail out if the retry count is >= the maximum, not == ----------------------------------------------------------------------------------------------- Key: HADOOP-4364 URL: https://issues.apache.org/jira/browse/HADOOP-4364 Project: Hadoop Core Issue Type: Bug Components: ipc Affects Versions: 0.20.0 Reporter: Steve Loughran Priority: Minor Looking at the code in IPC.Client.handleConnectionFailure(), its clear that the connection setup exits if the client retrys equals the maximum specified if (curRetries == maxRetries) { throw ioe; } But there's nothing to stop anyone setting ipc.client.connect.max.retries=0 in the configuration, and if that happens, the code will spin until the (integer) retry count wraps around. The test should be curRetries >= maxRetries -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.