[ 
https://issues.apache.org/jira/browse/ARTEMIS-4726?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17849057#comment-17849057
 ] 

ASF subversion and git services commented on ARTEMIS-4726:
----------------------------------------------------------

Commit c47713454caeece82df29a0a7fd4a2a39000576b in activemq-artemis's branch 
refs/heads/main from Justin Bertram
[ https://gitbox.apache.org/repos/asf?p=activemq-artemis.git;h=c47713454c ]

ARTEMIS-4726 fix original commit

The original commit (1ee3e884b707a659d924188048c2960a3b22df35) for this
issue wasn't completely correct. This commit fixes those issues so that
both the messageCount and scheduledMessageCount are accurate now when
a scheduled message is removed by its ID.


> Removing scheduled message from queue via management can cause negative 
> message count
> -------------------------------------------------------------------------------------
>
>                 Key: ARTEMIS-4726
>                 URL: https://issues.apache.org/jira/browse/ARTEMIS-4726
>             Project: ActiveMQ Artemis
>          Issue Type: Bug
>          Components: Web Console
>    Affects Versions: 2.31.0
>         Environment: NAME="Oracle Linux Server"
> VERSION="8.6"
> ID="ol"
> ID_LIKE="fedora"
> VARIANT="Server"
> VARIANT_ID="server"
> VERSION_ID="8.6"
> PLATFORM_ID="platform:el8"
> PRETTY_NAME="Oracle Linux Server 8.6"
> ANSI_COLOR="0;31"
> CPE_NAME="cpe:/o:oracle:linux:8:6:server"
> HOME_URL="https://linux.oracle.com/";
> BUG_REPORT_URL="https://bugzilla.oracle.com/";
> ORACLE_BUGZILLA_PRODUCT="Oracle Linux 8"
> ORACLE_BUGZILLA_PRODUCT_VERSION=8.6
> ORACLE_SUPPORT_PRODUCT="Oracle Linux"
> ORACLE_SUPPORT_PRODUCT_VERSION=8.6
>  
> java version "17.0.8" 2023-07-18 LTS
> Java(TM) SE Runtime Environment Oracle GraalVM 17.0.8+9.1 (build 
> 17.0.8+9-LTS-jvmci-23.0-b14)
> Java HotSpot(TM) 64-Bit Server VM Oracle GraalVM 17.0.8+9.1 (build 
> 17.0.8+9-LTS-jvmci-23.0-b14, mixed mode, sharing)
>  
>  
>  
>            Reporter: Juanjo Marin
>            Assignee: Justin Bertram
>            Priority: Minor
>         Attachments: Queue1.PNG, Queue2.PNG, Queue3.PNG, RemoveMessage1.PNG, 
> RemoveMessage2.PNG, listScheduledMessage.PNG, listScheduledMessage.txt, 
> listScheduledMessages2.txt, removeAll.PNG
>
>          Time Spent: 50m
>  Remaining Estimate: 0h
>
> When we delete a scheduled message that has not yet been sent, it subtracts 2 
> from the message counter. This only happens when the message has not been 
> delivered. The queue counter does not recover at any point, but the queue 
> continues to function normally.
> If we remove all messages, the remaining ones are deleted, but the queue goes 
> into negative. In one of our tests, the queue stopped functioning correctly 
> and only messages could be inserted; it did not allow consuming them in any 
> way. We haven't been able to reproduce it again.
> I attach screenshots and evidence.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to