continuum-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Murali Mohan (JIRA)" <j...@codehaus.org>
Subject [jira] (CONTINUUM-2704) Shell builds are not executing concurrently
Date Fri, 01 Mar 2013 17:21:52 GMT

    [ https://jira.codehaus.org/browse/CONTINUUM-2704?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=320681#comment-320681
] 

Murali Mohan commented on CONTINUUM-2704:
-----------------------------------------

I think this is the issue. In class ShellBuildExecutor.java in continuum-core project, I see
the following method as synchronized, that is the problem.

{code}
public synchronized ContinuumBuildExecutionResult build( Project project, BuildDefinition
buildDefinition,
                                                         File buildOutput )
    throws ContinuumBuildExecutorException
{
    // TODO: this should be validated earlier?
	
	log.info("MUR: build");
	
    String executable = getBuildFileForProject( project, buildDefinition );

    return executeShellCommand( project, executable, buildDefinition.getArguments(), buildOutput,
                                getEnvironments( buildDefinition ) );
}
{code}
                
> Shell builds are not executing concurrently
> -------------------------------------------
>
>                 Key: CONTINUUM-2704
>                 URL: https://jira.codehaus.org/browse/CONTINUUM-2704
>             Project: Continuum
>          Issue Type: Bug
>          Components: Parallel Builds
>    Affects Versions: 1.3.8
>         Environment: Ubuntu, Tomcat
>            Reporter: Murali Mohan
>
> Continuum version 1.3.6. Deployed on Tomcat in Ubuntu.
> I have 2 projects, say A and B. Each has shell builds defined and set to run in different
queues. Number of parallel builds is set to 4.
> The problem is that, when the shell build from A runs, it will not execute the build
until the shell build from B is complete. it is almost  like A is waiting for B to finish.
Please note that maven builds are happily running in parallel in these 2 queues. It is only
the shell build that has a problem.
> To be sure that this is not an OS level problem, I started the build in B from Continuum
and ran the shell script for A from command line and it worked fine - both ran in parallel.
So, I think Continuum has a bottle neck somewhere. please help.

--
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

Mime
View raw message