Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-2450

Locks and Latches plugin loses control after one build is aborted

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • None
    • Platform: All, OS: All

      I'm running Hudson 1.252, with two build executors and Locks plugin 0.2

      Situation: two or more jobs are enqueued and executor #1 is building, while the
      #2 is idle since all jobs share the same lock label.
      If I cancel the build on #1, two enqueued jobs start building at the same time,
      using the two executors and ignoring the lock.

      All jobs are free style.

          [JENKINS-2450] Locks and Latches plugin loses control after one build is aborted

          This is an underlying bug in the core of hudson in how it manages the queue entries.

          I'm going to add some workaround code.

          The net effect of the workaround is that when this situation arises, all the
          jobs will start executing, but the locks-and-latches plugin will delay each job
          such that only one can pass the lock at any moment in time.

          They'll look like they're all building, but in fact only one will be inside the lock

          Stephen Connolly added a comment - This is an underlying bug in the core of hudson in how it manages the queue entries. I'm going to add some workaround code. The net effect of the workaround is that when this situation arises, all the jobs will start executing, but the locks-and-latches plugin will delay each job such that only one can pass the lock at any moment in time. They'll look like they're all building, but in fact only one will be inside the lock

          Code changed in hudson
          User: : stephenconnolly
          Path:
          trunk/hudson/plugins/locks-and-latches/src/main/java/hudson/plugins/locksandlatches/LockWrapper.java
          http://fisheye4.cenqua.com/changelog/hudson/?cs=12577
          Log:
          [FIXES JENKINS-2450]

          SCM/JIRA link daemon added a comment - Code changed in hudson User: : stephenconnolly Path: trunk/hudson/plugins/locks-and-latches/src/main/java/hudson/plugins/locksandlatches/LockWrapper.java http://fisheye4.cenqua.com/changelog/hudson/?cs=12577 Log: [FIXES JENKINS-2450]

          Alan Harder added a comment -

          marking as resolved, as above commit message indicates it is fixed.

          Alan Harder added a comment - marking as resolved, as above commit message indicates it is fixed.

            Unassigned Unassigned
            sfernandes sfernandes
            Votes:
            2 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: