• Icon: Bug Bug
    • Resolution: Cannot Reproduce
    • Icon: Major Major
    • None
    • Platform: All, OS: All

      I have tried to use one major job to trigger many other jobs. for serializing
      the parallel triggerd jobs I used the locks-and-latches plugin. but if the jobs
      are triggered in the same second (in parallel) the locks have no effect -> the
      triggered jobs were executed in parallel. if I trigger some jobs manual (with a
      short delay) the locks works fine.

      I think that the locks will be locked to late, so a second job can be run in
      parallel.

          [JENKINS-4024] locks seams to be not atomar

          There is a bug in Hudson's queue whereby two jobs which use the same resource
          can start at the same time if they both enter the queue at the same time.
          locks&latches uses a second level lock to ensure that even if this happens, only
          one project can actually build at a time.

          The second level lock stops the build from actually progressing until the lock
          has been fully acquired.... you should see messages in the console informing you
          about the second level lock

          Stephen Connolly added a comment - There is a bug in Hudson's queue whereby two jobs which use the same resource can start at the same time if they both enter the queue at the same time. locks&latches uses a second level lock to ensure that even if this happens, only one project can actually build at a time. The second level lock stops the build from actually progressing until the lock has been fully acquired.... you should see messages in the console informing you about the second level lock

          mdonohue added a comment -

          See issue 1122 for the underlying problem

          mdonohue added a comment - See issue 1122 for the underlying problem

          Thomas Fürer added a comment -

          currently no problem

          Thomas Fürer added a comment - currently no problem

            stephenconnolly Stephen Connolly
            tofuatjava Thomas Fürer
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: