Return-Path: X-Original-To: apmail-hama-dev-archive@www.apache.org Delivered-To: apmail-hama-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 8ABFE10818 for ; Fri, 13 Sep 2013 16:11:16 +0000 (UTC) Received: (qmail 84336 invoked by uid 500); 13 Sep 2013 15:52:09 -0000 Delivered-To: apmail-hama-dev-archive@hama.apache.org Received: (qmail 72897 invoked by uid 500); 13 Sep 2013 15:48:50 -0000 Mailing-List: contact dev-help@hama.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@hama.apache.org Delivered-To: mailing list dev@hama.apache.org Received: (qmail 61465 invoked by uid 99); 13 Sep 2013 14:11:04 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 13 Sep 2013 14:11:04 +0000 Date: Fri, 13 Sep 2013 14:11:04 +0000 (UTC) From: "Suraj Menon (JIRA)" To: dev@hama.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (HAMA-789) BspPeer launched fail because port is bound by others 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/HAMA-789?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13766495#comment-13766495 ] Suraj Menon commented on HAMA-789: ---------------------------------- Thanks Edward, I got the feeling, I had to rebase the patch. Apparently not. Thanks anyways! > BspPeer launched fail because port is bound by others > ----------------------------------------------------- > > Key: HAMA-789 > URL: https://issues.apache.org/jira/browse/HAMA-789 > Project: Hama > Issue Type: Bug > Components: bsp core > Affects Versions: 0.6.2 > Reporter: MaoYuan Xian > Assignee: Suraj Menon > Fix For: 0.6.3 > > Attachments: HAMA-789.patch, HAMA-789.patch > > > In GroomServer, we call BSPNetUtils.getNextAvailable to assigning the bsppeer listening port. After figures out an available port, the GroomServer release the port and launches the BspPeer(Child), then the child listens to this port. > However, during the GroomServer release the port and peer listens the port, if other process in the operation system binds to the same port occasionally, the bsppeer will fail to start up because of "Address already in use" exception. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira