You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@activemq.apache.org by "Clebert Suconic (Jira)" <ji...@apache.org> on 2021/08/09 17:55:02 UTC

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

     [ https://issues.apache.org/jira/browse/ARTEMIS-3392?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Clebert Suconic closed ARTEMIS-3392.
------------------------------------
    Resolution: Fixed

> 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: 40m
>  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)