[
https://issues.apache.org/jira/browse/ARTEMIS-3392?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17385072#comment-17385072
]
ASF subversion and git services commented on ARTEMIS-3392:
----------------------------------------------------------
Commit 8a88c5f91307d6633f2cb7cf7eaa3035007b4fcf in activemq-artemis's branch
refs/heads/main from Howard Gao
[ https://gitbox.apache.org/repos/asf?p=activemq-artemis.git;h=8a88c5f ]
ARTEMIS-3392 Scale down would fail if target queue's id greater than max int
> Scale down would fail if target queue's id greater than max int
> ---------------------------------------------------------------
>
> Key: ARTEMIS-3392
> URL: https://issues.apache.org/jira/browse/ARTEMIS-3392
> Project: ActiveMQ Artemis
> Issue Type: Bug
> Components: Broker
> Affects Versions: 2.17.0
> Reporter: Howard Gao
> Assignee: Howard Gao
> Priority: Major
> Fix For: 2.18.0
>
> Time Spent: 20m
> Remaining Estimate: 0h
>
> In org.apache.activemq.artemis.core.server.impl.ScaleDownHandler#getQueueID
> it treated returned queue id value as an Integer while it is a long type.
> This will cause problem when the queue id (generated by broker) is bigger
> than int max value, in which case the queueID will turn into a negative and
> doesn't match the real queue id. That will cause scale down to fail.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)