Uploaded image for project: 'ActiveMQ Classic'
  1. ActiveMQ Classic
  2. AMQ-9101

Queue is Stale - The connection to 'tcp://xxx' is taking a long time to shutdown

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Not A Problem
    • 5.16.4, 5.17.1, 5.17.3
    • 5.18.0, 5.17.5
    • Transport
    • None

    Description

      specific queue in Activemq is frozen and messages don't get processed
      multiple ip addresses keep looping in TransportConnection.java
      only stopping and starting solves

      it looks like the loop never ends despite the ip address is not showing in any Hawtio connections

      I understand that the client might be a slow consumer but the queue should not be frozen/blocked forever
      the problem has been reproduced multiple times under load but also during (apparently) light traffic

      we tried also to shutdown the client apps without any luck, the connection is not existing but the queue does not reset nor returns to and healthy state

          @Override
          public void stop() throws Exception {
              // do not stop task the task runner factories (taskRunnerFactory, stopTaskRunnerFactory)
              // as their lifecycle is handled elsewhere
      
              stopAsync();
              while (!stopped.await(5, TimeUnit.SECONDS)) {
                  LOG.info("The connection to '{}' is taking a long time to shutdown.", transport.getRemoteAddress());
              }
          }
      

      any suggestions?

      best regards

      Attachments

        Activity

          People

            mattrpav Matt Pavlovich
            grigoni Gianandrea Rigoni
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: