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

Messages in RabbitMQ's queue was consumed but unacknowledged

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Critical
    • Resolution: Fixed
    • Component/s: gerrit-trigger-plugin
    • Labels:
      None
    • Environment:
      Jenkins 1.509.3
      gerrit-trigger 2.12.0-beta-4
    • Similar Issues:

      Description

      Using gerrit-trigger with RabbitMQ, messages in consumed queue was received but message itself was not acknowledged.

      In addition,

      • No triggered jobs

        Attachments

          Activity

          Hide
          rin_ne rin_ne added a comment -

          When message was consumed, Jenkins made warning in log:

          org.jenkinsci.plugins.rabbitmqconsumer.channels.ConsumeRMQChannel$MessageConsumer handleDelivery
          WARN: caught exception in delivery handler
          java.lang.ClassCastException: com.rabbitmq.client.impl.LongStringHelper$ByteArrayLongString cannot be cast to java.lang.String
          at com.sonyericsson.hudson.plugins.gerrit.trigger.impls.RabbitMQMessageListenerImpl.onReceive(RabbitMQMessageListenerImpl.java:93)
          at org.jenkinsci.plugins.rabbitmqconsumer.extensions.MessageQueueListener.fireOnReceive(MessageQueueListener.java:83)
          at org.jenkinsci.plugins.rabbitmqconsumer.channels.ConsumeRMQChannel$MessageConsumer.handleDelivery(ConsumeRMQChannel.java:135)
          at com.rabbitmq.client.impl.ConsumerDispatcher$5.run(ConsumerDispatcher.java:140)
          at com.rabbitmq.client.impl.ConsumerWorkService$WorkPoolRunnable.run(ConsumerWorkService.java:76)
          at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
          at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
          at java.lang.Thread.run(Thread.java:744)

          Show
          rin_ne rin_ne added a comment - When message was consumed, Jenkins made warning in log: org.jenkinsci.plugins.rabbitmqconsumer.channels.ConsumeRMQChannel$MessageConsumer handleDelivery WARN: caught exception in delivery handler java.lang.ClassCastException: com.rabbitmq.client.impl.LongStringHelper$ByteArrayLongString cannot be cast to java.lang.String at com.sonyericsson.hudson.plugins.gerrit.trigger.impls.RabbitMQMessageListenerImpl.onReceive(RabbitMQMessageListenerImpl.java:93) at org.jenkinsci.plugins.rabbitmqconsumer.extensions.MessageQueueListener.fireOnReceive(MessageQueueListener.java:83) at org.jenkinsci.plugins.rabbitmqconsumer.channels.ConsumeRMQChannel$MessageConsumer.handleDelivery(ConsumeRMQChannel.java:135) at com.rabbitmq.client.impl.ConsumerDispatcher$5.run(ConsumerDispatcher.java:140) at com.rabbitmq.client.impl.ConsumerWorkService$WorkPoolRunnable.run(ConsumerWorkService.java:76) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at java.lang.Thread.run(Thread.java:744)
          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in jenkins
          User: rinrinne
          Path:
          src/main/java/com/sonyericsson/hudson/plugins/gerrit/trigger/impls/RabbitMQMessageListenerImpl.java
          src/test/java/com/sonyericsson/hudson/plugins/gerrit/trigger/impls/RabbitMQMessageListenerImplTest.java
          http://jenkins-ci.org/commit/gerrit-trigger-plugin/5c25e280a39e555fb8f5d68276b897708afd674d
          Log:
          Wrong cast in RabbitMQ implementation

          Header values in RabbitMQ message is not String but library defined
          ByteArray. So it cannot be cast.

          Fix for JENKINS-24012

          Task-Url: https://issues.jenkins-ci.org/browse/JENKINS-24012

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: rinrinne Path: src/main/java/com/sonyericsson/hudson/plugins/gerrit/trigger/impls/RabbitMQMessageListenerImpl.java src/test/java/com/sonyericsson/hudson/plugins/gerrit/trigger/impls/RabbitMQMessageListenerImplTest.java http://jenkins-ci.org/commit/gerrit-trigger-plugin/5c25e280a39e555fb8f5d68276b897708afd674d Log: Wrong cast in RabbitMQ implementation Header values in RabbitMQ message is not String but library defined ByteArray. So it cannot be cast. Fix for JENKINS-24012 Task-Url: https://issues.jenkins-ci.org/browse/JENKINS-24012

            People

            • Assignee:
              rsandell rsandell
              Reporter:
              rin_ne rin_ne
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: