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 2EB7210D63 for ; Thu, 1 Aug 2013 04:13:54 +0000 (UTC) Received: (qmail 26679 invoked by uid 500); 1 Aug 2013 04:13:54 -0000 Delivered-To: apmail-hama-dev-archive@hama.apache.org Received: (qmail 26557 invoked by uid 500); 1 Aug 2013 04:13: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 26203 invoked by uid 99); 1 Aug 2013 04:13:48 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 01 Aug 2013 04:13:48 +0000 Date: Thu, 1 Aug 2013 04:13:48 +0000 (UTC) From: "MaoYuan Xian (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=13726027#comment-13726027 ] MaoYuan Xian commented on HAMA-789: ----------------------------------- I can run the job successfully with the patch in my cluster. > 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 > > > 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