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

Deadlock in network of brokers simple architecture

VotersWatch issueWatchersLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Critical
    • Resolution: Abandoned
    • 5.9.1, 5.10.0
    • None
    • Transport
    • None
    • Ubuntu 12.04.5 LTS

      java version "1.7.0_60"
      Java(TM) SE Runtime Environment (build 1.7.0_60-b19)
      Java HotSpot(TM) 64-Bit Server VM (build 24.60-b09, mixed mode)

    Description

      With the following topology:

      producer (1+ threads) -> broker1 <====>broker2 <-- consumer (2+ threads)

      The producer has to be started up 1st and allow to enqueue a few messages, then the consumer threads are started.

      The consumer shows messages to have received only one or two messages while the producer keeps on enqueueing messages normally. The scenario doesn't happen when the consumer threads are started 1st then the producers but if the consumers are disconnected and then reconnected the issue is visible again. I'm using the swiss army open wire example clients.

      Consumer starting command line:

      ant consumer -Durl=tcp://localhost:61627 -Dtopic=false -Dmax=200 -DparallelThreads=2 -DsleepTime=100

      Producer starting command line:

      ant producer -Durl=tcp://localhost:61626 -Dtopic=false -Dmax=400 -DparallelThreads=1 -DsleepTime=100 -DmessageSize=1000

      Taking a thread dump I can see a deadlock. look at the attached file for details. I also attached the brokers configurations.

      Attachments

        1. activemq-b1.xml
          5 kB
          Claudio Santana
        2. activemq-b2.xml
          5 kB
          Claudio Santana
        3. deadlock.txt
          40 kB
          Claudio Santana

        Issue Links

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            Unassigned Unassigned
            csantana@fitbit.com Claudio Santana
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment