You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@activemq.apache.org by "Howard Gao (Jira)" <ji...@apache.org> on 2021/07/20 10:11:00 UTC

[jira] [Created] (ARTEMIS-3392) Scale down would fail if target queue's id greater than max int

Howard Gao created ARTEMIS-3392:
-----------------------------------

             Summary: 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
             Fix For: 2.18.0


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)