[
https://issues.apache.org/jira/browse/ARTEMIS-2629?focusedWorklogId=392433&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-392433
]
ASF GitHub Bot logged work on ARTEMIS-2629:
-------------------------------------------
Author: ASF GitHub Bot
Created on: 25/Feb/20 09:51
Start Date: 25/Feb/20 09:51
Worklog Time Spent: 10m
Work Description: brusdev commented on pull request #2992: ARTEMIS-2629
ensure queue auto-delete after expiration
URL: https://github.com/apache/activemq-artemis/pull/2992#discussion_r383769152
##########
File path:
artemis-server/src/main/java/org/apache/activemq/artemis/core/server/impl/QueueManagerImpl.java
##########
@@ -84,8 +84,7 @@ public static boolean messageCountCheck(Queue queue) {
}
public static boolean delayCheck(Queue queue) {
- long consumerRemovedTimestamp = queue.getConsumerRemovedTimestamp();
- return consumerRemovedTimestamp != -1 && System.currentTimeMillis() -
consumerRemovedTimestamp >= queue.getAutoDeleteDelay();
+ return System.currentTimeMillis() - queue.getConsumerRemovedTimestamp()
>= queue.getAutoDeleteDelay();
Review comment:
Removing the condition `consumerRemovedTimestamp != -1` could change the
semantic of the **public** method `delayCheck`. With this change `delayCheck`
will return **true** before removing a consumer.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
Issue Time Tracking
-------------------
Worklog Id: (was: 392433)
Time Spent: 50m (was: 40m)
> Queue never auto-deleted after last message expires
> ---------------------------------------------------
>
> Key: ARTEMIS-2629
> URL: https://issues.apache.org/jira/browse/ARTEMIS-2629
> Project: ActiveMQ Artemis
> Issue Type: Bug
> Reporter: Justin Bertram
> Assignee: Justin Bertram
> Priority: Major
> Time Spent: 50m
> Remaining Estimate: 0h
>
--
This message was sent by Atlassian Jira
(v8.3.4#803005)