Return-Path: Delivered-To: apmail-hadoop-common-issues-archive@minotaur.apache.org Received: (qmail 50079 invoked from network); 27 Apr 2010 04:35:55 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 27 Apr 2010 04:35:55 -0000 Received: (qmail 9421 invoked by uid 500); 27 Apr 2010 04:35:55 -0000 Delivered-To: apmail-hadoop-common-issues-archive@hadoop.apache.org Received: (qmail 9302 invoked by uid 500); 27 Apr 2010 04:35:55 -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 9290 invoked by uid 99); 27 Apr 2010 04:35:54 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 27 Apr 2010 04:35:54 +0000 X-ASF-Spam-Status: No, hits=-1352.3 required=10.0 tests=ALL_TRUSTED,AWL 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; Tue, 27 Apr 2010 04:35:53 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id o3R4ZWr3021877 for ; Tue, 27 Apr 2010 04:35:33 GMT Message-ID: <5128259.25151272342932881.JavaMail.jira@thor> Date: Tue, 27 Apr 2010 00:35:32 -0400 (EDT) From: "Tom White (JIRA)" To: common-issues@hadoop.apache.org Subject: [jira] Commented: (HADOOP-6722) NetUtils.connect should check that it hasn't connected a socket to itself In-Reply-To: <10234488.178701272152510902.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-6722?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12861236#action_12861236 ] Tom White commented on HADOOP-6722: ----------------------------------- +1 > NetUtils.connect should check that it hasn't connected a socket to itself > ------------------------------------------------------------------------- > > Key: HADOOP-6722 > URL: https://issues.apache.org/jira/browse/HADOOP-6722 > Project: Hadoop Common > Issue Type: Bug > Components: util > Reporter: Todd Lipcon > Assignee: Todd Lipcon > Attachments: hadoop-6722.txt > > > I had no idea this was possible, but it turns out that a TCP connection will be established in the rare case that the local side of the socket binds to the ephemeral port that you later try to connect to. This can present itself in very very rare occasion when an RPC client is trying to connect to a daemon running on the same node, but that daemon is down. To see what I'm talking about, run "while true ; do telnet localhost 60020 ; done" on a multicore box and wait several minutes. > This can be easily detected in NetUtils.connect by making sure the local address/port is not equal to the remote address/port. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.