Return-Path: X-Original-To: apmail-incubator-hama-dev-archive@minotaur.apache.org Delivered-To: apmail-incubator-hama-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 739B47569 for ; Wed, 21 Dec 2011 07:50:58 +0000 (UTC) Received: (qmail 62334 invoked by uid 500); 21 Dec 2011 07:50:57 -0000 Delivered-To: apmail-incubator-hama-dev-archive@incubator.apache.org Received: (qmail 62229 invoked by uid 500); 21 Dec 2011 07:50:57 -0000 Mailing-List: contact hama-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: hama-dev@incubator.apache.org Delivered-To: mailing list hama-dev@incubator.apache.org Received: (qmail 61971 invoked by uid 99); 21 Dec 2011 07:50:55 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 21 Dec 2011 07:50:55 +0000 X-ASF-Spam-Status: No, hits=-2002.5 required=5.0 tests=ALL_TRUSTED,RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 21 Dec 2011 07:50:52 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id E21B4120599 for ; Wed, 21 Dec 2011 07:50:30 +0000 (UTC) Date: Wed, 21 Dec 2011 07:50:30 +0000 (UTC) From: "Edward J. Yoon (Resolved) (JIRA)" To: hama-dev@incubator.apache.org Message-ID: <1647049992.34554.1324453830927.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <1002399590.34516.1324451370675.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Resolved] (HAMA-489) Check port availability before forking child process MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/HAMA-489?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Edward J. Yoon resolved HAMA-489. --------------------------------- Resolution: Fixed Tested on my cluster. I just commit this. > Check port availability before forking child process > ---------------------------------------------------- > > Key: HAMA-489 > URL: https://issues.apache.org/jira/browse/HAMA-489 > Project: Hama > Issue Type: Bug > Components: bsp > Affects Versions: 0.3.0 > Reporter: Edward J. Yoon > Assignee: Edward J. Yoon > Fix For: 0.4.0 > > Attachments: HAMA-489.patch > > > {code} > for (GroomServerAction action : actions) { > Task t = ((LaunchTaskAction) action).getTask(); > int peerPort = (Constants.DEFAULT_PEER_PORT + i); > assignedPeerNames.put(t.getTaskID(), peerPort); > i++; > } > {code} > Increasing naively the number of port will potentially cause "already in use" error. We may need to find next available port. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira