Uploaded image for project: 'Spring AMQP'
  1. Spring AMQP
  2. AMQP-765

Shutdown application in Publisher Confirms mode ShutdownSignalException(reply-code=200) is thrown

    Details

    • Type: Defect
    • Status: Closed
    • Priority: Minor
    • Resolution: Complete
    • Affects Version/s: 1.7.3
    • Fix Version/s: 1.7.4, 2.0 RC1
    • Component/s: RabbitMQ
    • Labels:
    • Environment:
      Spring Boot:1.5.6.RELEASE

      Description

       CachingConnectionFactory.setPublisherConfirms(true);
       CachingConnectionFactory.setPublisherReturns(true);
      

      When shutdown the application in Publisher Confirms mode,a ShutdownSignalException is thrown

      com.rabbitmq.client.ShutdownSignalException: clean connection shutdown; protocol method: #method<connection.close>(reply-code=200, reply-text=OK, class-id=0, method-id=0)
      

        Activity

        Hide
        grussell Gary Russell added a comment -

        Publisher Confirms deferred close thread...

        com.rabbitmq.client.ShutdownSignalException: clean connection shutdown; protocol method: #method<connection.close>(reply-code=200, reply-text=OK, class-id=0, method-id=0)
        	at com.rabbitmq.utility.ValueOrException.getValue(ValueOrException.java:66)
        	at com.rabbitmq.utility.BlockingValueOrException.uninterruptibleGetValue(BlockingValueOrException.java:36)
        	at com.rabbitmq.client.impl.AMQChannel$BlockingRpcContinuation.getReply(AMQChannel.java:372)
        	at com.rabbitmq.client.impl.ChannelN.close(ChannelN.java:605)
        	at com.rabbitmq.client.impl.ChannelN.close(ChannelN.java:530)
        	at com.rabbitmq.client.impl.ChannelN.close(ChannelN.java:523)
        	at org.springframework.amqp.rabbit.support.PublisherCallbackChannelImpl.close(PublisherCallbackChannelImpl.java:617)
        	at org.springframework.amqp.rabbit.connection.CachingConnectionFactory$CachedChannelInvocationHandler$1.run(CachingConnectionFactory.java:1087)
        	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
        	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
        	at java.lang.Thread.run(Thread.java:745)
        

        Show
        grussell Gary Russell added a comment - Publisher Confirms deferred close thread... com.rabbitmq.client.ShutdownSignalException: clean connection shutdown; protocol method: #method<connection.close>(reply-code=200, reply-text=OK, class-id=0, method-id=0) at com.rabbitmq.utility.ValueOrException.getValue(ValueOrException.java:66) at com.rabbitmq.utility.BlockingValueOrException.uninterruptibleGetValue(BlockingValueOrException.java:36) at com.rabbitmq.client.impl.AMQChannel$BlockingRpcContinuation.getReply(AMQChannel.java:372) at com.rabbitmq.client.impl.ChannelN.close(ChannelN.java:605) at com.rabbitmq.client.impl.ChannelN.close(ChannelN.java:530) at com.rabbitmq.client.impl.ChannelN.close(ChannelN.java:523) at org.springframework.amqp.rabbit.support.PublisherCallbackChannelImpl.close(PublisherCallbackChannelImpl.java:617) at org.springframework.amqp.rabbit.connection.CachingConnectionFactory$CachedChannelInvocationHandler$1.run(CachingConnectionFactory.java:1087) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at java.lang.Thread.run(Thread.java:745)
        Show
        grussell Gary Russell added a comment - 1.7.x PR: https://github.com/spring-projects/spring-amqp/pull/655

          People

          • Assignee:
            grussell Gary Russell
            Reporter:
            yinkanchn yinkanchn
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: