Uploaded image for project: 'Continuum'
  1. Continuum
  2. CONTINUUM-2573

Distributed builds are not distributed: they are always scheduled to the last agent defined

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Critical
    • Resolution: Incomplete
    • 1.3.6
    • None
    • Distributed Builds
    • None

    Description

      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?

      Attachments

        Activity

          People

            Unassigned Unassigned
            paolo scapin Paolo Scapin
            Votes:
            5 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: