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

Jenkins 2.107.2 job status show finished, but in console log, the job still is running. other job can't build due to running job.

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Critical
    • Resolution: Fixed
    • Component/s: slack-plugin
    • Labels:
      None
    • Environment:
      2.107.2
    • Similar Issues:

      Description

        Attachments

          Activity

          Hide
          daniel1zhang daniel zhang added a comment -

          Here is jstack logs:
          java.lang.Thread.State: RUNNABLE
          at java.net.SocketInputStream.socketRead0(Native Method)
          at java.net.SocketInputStream.socketRead(SocketInputStream.java:116)
          at java.net.SocketInputStream.read(SocketInputStream.java:171)
          at java.net.SocketInputStream.read(SocketInputStream.java:141)
          at sun.security.ssl.InputRecord.readFully(InputRecord.java:465)
          at sun.security.ssl.InputRecord.readV3Record(InputRecord.java:593)
          at sun.security.ssl.InputRecord.read(InputRecord.java:532)
          at sun.security.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:973)

          • locked <0x00000001e3179e70> (a java.lang.Object)
            at sun.security.ssl.SSLSocketImpl.performInitialHandshake(SSLSocketImpl.java:1375)
          • locked <0x00000001e3179f30> (a java.lang.Object)
            at sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1403)
            at sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1387)
            at org.apache.http.conn.ssl.SSLConnectionSocketFactory.createLayeredSocket(SSLConnectionSocketFactory.java:275)
            at org.apache.http.conn.ssl.SSLConnectionSocketFactory.connectSocket(SSLConnectionSocketFactory.java:254)
            at org.apache.http.impl.conn.HttpClientConnectionOperator.connect(HttpClientConnectionOperator.java:118)
            at org.apache.http.impl.conn.PoolingHttpClientConnectionManager.connect(PoolingHttpClientConnectionManager.java:314)
            at org.apache.http.impl.execchain.MainClientExec.establishRoute(MainClientExec.java:363)
            at org.apache.http.impl.execchain.MainClientExec.execute(MainClientExec.java:219)
            at org.apache.http.impl.execchain.ProtocolExec.execute(ProtocolExec.java:195)
            at org.apache.http.impl.execchain.RetryExec.execute(RetryExec.java:85)
            at org.apache.http.impl.execchain.RedirectExec.execute(RedirectExec.java:108)
            at org.apache.http.impl.client.InternalHttpClient.doExecute(InternalHttpClient.java:186)
            at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:82)
            at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:106)
            at jenkins.plugins.slack.StandardSlackService.publish(StandardSlackService.java:136)
            at jenkins.plugins.slack.StandardSlackService.publish(StandardSlackService.java:95)
            at jenkins.plugins.slack.ActiveNotifier.completed(ActiveNotifier.java:137)
            at jenkins.plugins.slack.SlackListener.onCompleted(SlackListener.java:27)
            at jenkins.plugins.slack.SlackListener.onCompleted(SlackListener.java:15)
            at hudson.model.listeners.RunListener.fireCompleted(RunListener.java:211)
            at hudson.model.Run.execute(Run.java:1772)
            at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)

          at hudson.model.ResourceController.execute(ResourceController.java:97)

          at hudson.model.Executor.run(Executor.java:429)

          Show
          daniel1zhang daniel zhang added a comment - Here is jstack logs: java.lang.Thread.State: RUNNABLE at java.net.SocketInputStream.socketRead0(Native Method) at java.net.SocketInputStream.socketRead(SocketInputStream.java:116) at java.net.SocketInputStream.read(SocketInputStream.java:171) at java.net.SocketInputStream.read(SocketInputStream.java:141) at sun.security.ssl.InputRecord.readFully(InputRecord.java:465) at sun.security.ssl.InputRecord.readV3Record(InputRecord.java:593) at sun.security.ssl.InputRecord.read(InputRecord.java:532) at sun.security.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:973) locked <0x00000001e3179e70> (a java.lang.Object) at sun.security.ssl.SSLSocketImpl.performInitialHandshake(SSLSocketImpl.java:1375) locked <0x00000001e3179f30> (a java.lang.Object) at sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1403) at sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1387) at org.apache.http.conn.ssl.SSLConnectionSocketFactory.createLayeredSocket(SSLConnectionSocketFactory.java:275) at org.apache.http.conn.ssl.SSLConnectionSocketFactory.connectSocket(SSLConnectionSocketFactory.java:254) at org.apache.http.impl.conn.HttpClientConnectionOperator.connect(HttpClientConnectionOperator.java:118) at org.apache.http.impl.conn.PoolingHttpClientConnectionManager.connect(PoolingHttpClientConnectionManager.java:314) at org.apache.http.impl.execchain.MainClientExec.establishRoute(MainClientExec.java:363) at org.apache.http.impl.execchain.MainClientExec.execute(MainClientExec.java:219) at org.apache.http.impl.execchain.ProtocolExec.execute(ProtocolExec.java:195) at org.apache.http.impl.execchain.RetryExec.execute(RetryExec.java:85) at org.apache.http.impl.execchain.RedirectExec.execute(RedirectExec.java:108) at org.apache.http.impl.client.InternalHttpClient.doExecute(InternalHttpClient.java:186) at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:82) at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:106) at jenkins.plugins.slack.StandardSlackService.publish(StandardSlackService.java:136) at jenkins.plugins.slack.StandardSlackService.publish(StandardSlackService.java:95) at jenkins.plugins.slack.ActiveNotifier.completed(ActiveNotifier.java:137) at jenkins.plugins.slack.SlackListener.onCompleted(SlackListener.java:27) at jenkins.plugins.slack.SlackListener.onCompleted(SlackListener.java:15) at hudson.model.listeners.RunListener.fireCompleted(RunListener.java:211) at hudson.model.Run.execute(Run.java:1772) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43) at hudson.model.ResourceController.execute(ResourceController.java:97) at hudson.model.Executor.run(Executor.java:429)
          Hide
          oleg_nenashev Oleg Nenashev added a comment -

          Looks like a Slack plugin issue.

          Listener code should not contain heavy logic in handlers, such logic must be offloaded

          Show
          oleg_nenashev Oleg Nenashev added a comment - Looks like a Slack plugin issue. Listener code should not contain heavy logic in handlers, such logic must be offloaded
          Hide
          danielbeck Daniel Beck added a comment -

          There's no bug in core here that I can tell.

          Builds have an intermediate state between being finished (i.e. build result has been determined) and done (logging closed) during which notifiers that do not, and should not, impact the build result can run. This includes RunListeners. This is what happens here. Probably just a matter of defining timeouts in the plugin.

          Show
          danielbeck Daniel Beck added a comment - There's no bug in core here that I can tell. Builds have an intermediate state between being finished (i.e. build result has been determined) and done (logging closed) during which notifiers that do not, and should not, impact the build result can run. This includes RunListeners. This is what happens here. Probably just a matter of defining timeouts in the plugin.

            People

            Assignee:
            kmadel Kurt Madel
            Reporter:
            daniel1zhang daniel zhang
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: