[
https://issues.apache.org/jira/browse/QPID-5555?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13910478#comment-13910478
]
Robbie Gemmell commented on QPID-5555:
--------------------------------------
An existing bug really (from
https://svn.apache.org/viewvc?view=revision&revision=1515079), but highlighted
by this change:
Should be using generateQueueUUID.
{noformat}
@@ -573,22 +580,27 @@ public abstract class AbstractVirtualHost implements
VirtualHost, IConnectionReg
{
throw new QueueExistsException("Queue with name " + queueName
+ " already exists", _queueRegistry.getQueue(queueN
}
- if(id == null)
+ if(!attributes.containsKey(Queue.ID))
{
- id = UUIDGenerator.generateExchangeUUID(queueName, getName());
+ UUID id = UUIDGenerator.generateExchangeUUID(queueName,
getName());
while(_queueRegistry.getQueue(id) != null)
{
id = UUID.randomUUID();
}
+ attributes.put(Queue.ID, id);
{noformat}
Looks like this has been excluded into oblivion...delete?
{noformat}
org.apache.qpid.server.logging.TransientQueueLoggingTest#testQueueCreateDurableExclusive
{noformat}
> [Java Broker] Modify Queue implementation of lifetime / exclusivity policies
> ----------------------------------------------------------------------------
>
> Key: QPID-5555
> URL: https://issues.apache.org/jira/browse/QPID-5555
> Project: Qpid
> Issue Type: Improvement
> Components: Java Broker
> Reporter: Rob Godfrey
> Assignee: Robbie Gemmell
> Fix For: 0.27
>
>
> AMQP 0-8/9/9-1 and AMQP 0-10 both have notions of "autodelete" and
> "exclusive" for Queues. However while they use the same names, they are in
> fact subtly different. The Java Broker Queue implementation should better
> abstract these notions into the lifetime and exclusivity policies.
--
This message was sent by Atlassian JIRA
(v6.1.5#6160)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]