Effective October 27, 2012, online and email support for FuseSource products will move to Red Hat support channels. For more information, please see the JIRA Migration to Red Hat FAQ.
As of October 27th, please open all new issues in the Red Hat Customer Portal .
Issue Details (XML | Word | Printable)

Key: MB-1039
Type: Bug Bug
Status: Resolved Resolved
Resolution: Fixed
Priority: Major Major
Assignee: Gary Tully
Reporter: Torsten Mielke
Votes: 0
Watchers: 2
Operations

If you were logged in you would be able to see more operations.
FUSE Message Broker

temp queues looping between networked brokers

Created: 07/Dec/11 02:17 PM   Updated: 16/Dec/11 11:17 AM
Component/s: broker
Affects Version/s: 5.5.1-fuse-00-06, 5.5.1-fuse-01-11
Fix Version/s: 5.5.1-fuse-02-02

File Attachments: 1. File testcase-trimmed.tgz (69 kB)
2. File testcase.tgz (6 kB)


External Issue URL: https://issues.apache.org/jira/browse/AMQ-3253


 Description  « Hide
In a network of brokers information about temp destinations are broadcast inside the network.
The attached JUnit testcase reveals a bug where the use of temp destinations may result in those temp destinations being constantly created/updated on all brokers rather than being destroyed. It causes the brokers to spin.

 All   Comments   Change History      Sort Order: Ascending order - Click to sort in descending order
Torsten Mielke added a comment - 07/Dec/11 02:21 PM
Use mvn test to run the testcase. It may take a few test runs before reproducing the problem. In the two environments that I tested, almost every test run did reproduce it.

When reproduced you will see loads of logging output of this kind:

DEBUG AbstractRegion                 - Removing destination: temp-queue://ID:Mac.local-52310-1323267147531-11:161:1
DEBUG Queue                          - ID:Mac.local-52310-1323267147531-11:183:1 toPageIn: 0, Inflight: 0, 
pagedInMessages.size 0, enqueueCount: 0, dequeueCount: 0
DEBUG Queue                          - ID:Mac.local-52310-1323267147531-11:171:1 toPageIn: 0, Inflight: 0, 
pagedInMessages.size 0, enqueueCount: 0, dequeueCount: 0
DEBUG AbstractRegion                 - BrokerA adding destination: temp-queue://ID:Mac.local-
52310-1323267147531-11:183:1
DEBUG AbstractRegion                 - BrokerB adding destination: temp-queue://ID:Mac.local-
52310-1323267147531-11:171:1
DEBUG AbstractRegion                 - assigning ownership of auto created temp : temp-queue://ID:Mac.local-
52310-1323267147531-11:183:1 to connection:ID:Mac.local-52310-1323267147531-9:2
DEBUG AbstractRegion                 - assigning ownership of auto created temp : temp-queue://ID:Mac.local-
52310-1323267147531-11:171:1 to connection:ID:Mac.local-52310-1323267147531-8:2
DEBUG AbstractRegion                 - Removing destination: temp-queue://ID:Mac.local-52310-1323267147531-11:182:1
DEBUG Queue                          - ID:Mac.local-52310-1323267147531-11:183:1 toPageIn: 0, Inflight: 0, 
pagedInMessages.size 0, enqueueCount: 0, dequeueCount: 0
DEBUG AbstractRegion                 - BrokerC adding destination: temp-queue://ID:Mac.local-
52310-1323267147531-11:183:1
DEBUG AbstractRegion                 - BrokerB adding destination: temp-queue://ID:Mac.local-
52310-1323267147531-11:193:1
DEBUG AbstractRegion                 - assigning ownership of auto created temp : temp-queue://ID:Mac.local-
52310-1323267147531-11:183:1 to connection:ID:Mac.local-52310-1323267147531-6:2
DEBUG Queue                          - ID:Mac.local-52310-1323267147531-11:161:1 toPageIn: 0, Inflight: 0, 
pagedInMessages.size 0, enqueueCount: 0, dequeueCount: 0

Torsten Mielke added a comment - 09/Dec/11 04:13 PM
Attaching a trimmed down testcase (testcase-trimmed.tgz).
It only uses two brokers in a network and plain JMS APIs (no more stomp).
Using this testcase the problem reproduces fairly every time now.

Gary Tully added a comment - 12/Dec/11 11:48 AM
reopened https://issues.apache.org/jira/browse/AMQ-3253 to address this problem

Gary Tully added a comment - 16/Dec/11 11:17 AM
fix on the 5.5.* fuse branches