Return-Path: Delivered-To: apmail-continuum-issues-archive@www.apache.org Received: (qmail 50847 invoked from network); 8 Dec 2010 02:54:27 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 8 Dec 2010 02:54:27 -0000 Received: (qmail 59517 invoked by uid 500); 8 Dec 2010 02:54:27 -0000 Delivered-To: apmail-continuum-issues-archive@continuum.apache.org Received: (qmail 59425 invoked by uid 500); 8 Dec 2010 02:54:26 -0000 Mailing-List: contact issues-help@continuum.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@continuum.apache.org Delivered-To: mailing list issues@continuum.apache.org Received: (qmail 59410 invoked by uid 99); 8 Dec 2010 02:54:26 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 08 Dec 2010 02:54:26 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [63.246.2.115] (HELO codehaus01.managed.contegix.com) (63.246.2.115) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 08 Dec 2010 02:54:20 +0000 Received: from codehaus01.managed.contegix.com (localhost.localdomain [127.0.0.1]) by codehaus01.managed.contegix.com (Postfix) with ESMTP id E6C7A458146 for ; Tue, 7 Dec 2010 20:53:58 -0600 (CST) Date: Tue, 7 Dec 2010 20:53:58 -0600 (CST) From: "Maria Catherine Tan (JIRA)" To: issues@continuum.apache.org Message-ID: <30849271.882.1291776838259.JavaMail.haus-jira@codehaus01.managed.contegix.com> In-Reply-To: <11735743.82911.1287391532573.JavaMail.haus-jira@codehaus01.managed.contegix.com> Subject: [jira] Commented: (CONTINUUM-2573) Distributed builds are not distributed: they are always scheduled to the last agent defined MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 4e90ceb663894a42f12c0e28abbab431 X-Virus-Checked: Checked by ClamAV on apache.org [ http://jira.codehaus.org/browse/CONTINUUM-2573?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=246819#action_246819 ] Maria Catherine Tan commented on CONTINUUM-2573: ------------------------------------------------ I think this is already fixed in 1.4.0. Can you try it using that version. Thanks! > Distributed builds are not distributed: they are always scheduled to the last agent defined > ------------------------------------------------------------------------------------------- > > Key: CONTINUUM-2573 > URL: http://jira.codehaus.org/browse/CONTINUUM-2573 > Project: Continuum > Issue Type: Bug > Components: Distributed Builds > Affects Versions: 1.3.6 > Reporter: Paolo Scapin > Priority: Critical > Fix For: 1.4.2 (Beta) > > > When more than one agent are available for distributed build, every build is queued to the last one defined. > This way distributed builds are useless. > The issue is caused by a small bug in class org.apache.continuum.builder.distributed.manager.DefaultDistributedBuildManager, in method getOverallDistributedBuildQueueByAgentGroup, where the index "idx" ios never incremented > line 916: > int idx = 0; > then idx is checked to assign the first queue > line 932: > if ( idx == 0 ) > { > whereToBeQueued = distributedBuildQueue; > size = agentBuildSize; > } > but is never incremented. > idx should be incremented at line 953, inside the for cycle. > A similar cycle in the next method (getOverallDistributedBuildQueue) is implemented correctly > Please can anybody insert a fix in the next release? -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira