You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@activemq.apache.org by "Andrey Slepykh (Jira)" <ji...@apache.org> on 2024/06/19 15:20:00 UTC
[jira] [Updated] (ARTEMIS-4824) code overload DM_BOXED_PRIMITIVE_FOR_PARSING
[ https://issues.apache.org/jira/browse/ARTEMIS-4824?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Andrey Slepykh updated ARTEMIS-4824:
------------------------------------
Description:
!image-2024-06-19-18-06-30-222.png!
you are using the Integer.valueOf [in line 89|https://github.com/apache/activemq-artemis/blob/fb1b362b473cad51ae5d05a897be02b1fa8461d4/artemis-server/src/main/java/org/apache/activemq/artemis/core/server/routing/policies/LeastConnectionsPolicy.java#L89] method which hashes the information, although ultimately the connectionCountThreshold variable is only used for comparison using the "if" on line [53|https://github.com/apache/activemq-artemis/blob/fb1b362b473cad51ae5d05a897be02b1fa8461d4/artemis-server/src/main/java/org/apache/activemq/artemis/core/server/routing/policies/LeastConnectionsPolicy.java#L53] of the same file
Found by Linux Verification Center (portal.linuxtesting.ru) with SVACE.
Author: Firsov Vladimir, BMSTU (fvv22u102@student.bmstu.ru)
was:
!image-2024-06-19-18-06-30-222.png!
you are using the ```Integer.valueOf``` [in line 89|https://github.com/apache/activemq-artemis/blob/fb1b362b473cad51ae5d05a897be02b1fa8461d4/artemis-server/src/main/java/org/apache/activemq/artemis/core/server/routing/policies/LeastConnectionsPolicy.java#L89] method which hashes the information, although ultimately the connectionCountThreshold variable is only used for comparison using the "if" on line [53|https://github.com/apache/activemq-artemis/blob/fb1b362b473cad51ae5d05a897be02b1fa8461d4/artemis-server/src/main/java/org/apache/activemq/artemis/core/server/routing/policies/LeastConnectionsPolicy.java#L53] of the same file
Found by Linux Verification Center (portal.linuxtesting.ru) with SVACE.
Author: Firsov Vladimir, BMSTU (fvv22u102@student.bmstu.ru)
> code overload DM_BOXED_PRIMITIVE_FOR_PARSING
> --------------------------------------------
>
> Key: ARTEMIS-4824
> URL: https://issues.apache.org/jira/browse/ARTEMIS-4824
> Project: ActiveMQ Artemis
> Issue Type: Bug
> Components: ActiveMQ-Artemis-Native
> Affects Versions: 2.25.0
> Reporter: Andrey Slepykh
> Assignee: Clebert Suconic
> Priority: Major
> Attachments: image-2024-06-19-18-06-30-222.png
>
>
> !image-2024-06-19-18-06-30-222.png!
> you are using the Integer.valueOf [in line 89|https://github.com/apache/activemq-artemis/blob/fb1b362b473cad51ae5d05a897be02b1fa8461d4/artemis-server/src/main/java/org/apache/activemq/artemis/core/server/routing/policies/LeastConnectionsPolicy.java#L89] method which hashes the information, although ultimately the connectionCountThreshold variable is only used for comparison using the "if" on line [53|https://github.com/apache/activemq-artemis/blob/fb1b362b473cad51ae5d05a897be02b1fa8461d4/artemis-server/src/main/java/org/apache/activemq/artemis/core/server/routing/policies/LeastConnectionsPolicy.java#L53] of the same file
> Found by Linux Verification Center (portal.linuxtesting.ru) with SVACE.
> Author: Firsov Vladimir, BMSTU (fvv22u102@student.bmstu.ru)
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@activemq.apache.org
For additional commands, e-mail: issues-help@activemq.apache.org
For further information, visit: https://activemq.apache.org/contact