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

Sending mail blocks on prior build

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      A parallel-capable job was observed to be stuck in a later build just because an earlier build was still running:

      "Executor #1 for ... : executing ... #6268 : waiting for Check point mail sent on ... #6266" ...
         java.lang.Thread.State: WAITING (on object monitor)
      	at java.lang.Object.wait(Native Method)
      	at java.lang.Object.wait(Object.java:503)
      	at hudson.model.Run$RunExecution$CheckpointSet.waitForCheckPoint(Run.java:1453)
      	- locked <0x...> (a hudson.model.Run$RunExecution$CheckpointSet)
      	at hudson.model.Run.waitForCheckpoint(Run.java:1411)
      	at hudson.model.CheckPoint.block(CheckPoint.java:144)
      	at hudson.tasks.MailSender.findPreviousBuildResult(MailSender.java:144)
      	at hudson.tasks.MailSender.getMail(MailSender.java:166)
      	at hudson.tasks.MailSender.execute(MailSender.java:100)
      	at hudson.tasks.Mailer.perform(Mailer.java:117)
      

      As in JENKINS-16376, this is senseless. If the earlier build is not yet done, it is better to just not report any state transition.

        Attachments

          Issue Links

            Activity

            Hide
            scm_issue_link SCM/JIRA link daemon added a comment -

            Code changed in jenkins
            User: Jesse Glick
            Path:
            src/main/java/hudson/tasks/MailSender.java
            http://jenkins-ci.org/commit/mailer-plugin/7370b75a0ce52414168d8dc58832cb490893f33c
            Log:
            Merge pull request #9 from jglick/no-checkpoint-JENKINS-20867

            JENKINS-20867 Do not use checkpoints

            Compare: https://github.com/jenkinsci/mailer-plugin/compare/4f6be2df5dd1...7370b75a0ce5

            Show
            scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Jesse Glick Path: src/main/java/hudson/tasks/MailSender.java http://jenkins-ci.org/commit/mailer-plugin/7370b75a0ce52414168d8dc58832cb490893f33c Log: Merge pull request #9 from jglick/no-checkpoint- JENKINS-20867 JENKINS-20867 Do not use checkpoints Compare: https://github.com/jenkinsci/mailer-plugin/compare/4f6be2df5dd1...7370b75a0ce5
            Hide
            scm_issue_link SCM/JIRA link daemon added a comment -

            Code changed in jenkins
            User: Jesse Glick
            Path:
            src/main/java/hudson/tasks/MailSender.java
            http://jenkins-ci.org/commit/mailer-plugin/a32b1f191ed7b4fd93f6d8905604314c8992654a
            Log:
            [FIXED JENKINS-20867] Never wait for a prior build to complete merely to set a more accurate mail subject.

            Show
            scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Jesse Glick Path: src/main/java/hudson/tasks/MailSender.java http://jenkins-ci.org/commit/mailer-plugin/a32b1f191ed7b4fd93f6d8905604314c8992654a Log: [FIXED JENKINS-20867] Never wait for a prior build to complete merely to set a more accurate mail subject.

              People

              • Assignee:
                jglick Jesse Glick
                Reporter:
                jglick Jesse Glick
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: