[
https://issues.apache.org/jira/browse/ARTEMIS-4972?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17876924#comment-17876924
]
Suhov Roman edited comment on ARTEMIS-4972 at 8/27/24 6:22 AM:
---------------------------------------------------------------
[~jbertram] Yes, this bug was detected by the static code analyzer Svace
was (Author: JIRAUSER305694):
[~jbertram] Yes, this error was detected by the static code analyzer Svace
> The start() method should use a lock to access the expected binding variables.
> ------------------------------------------------------------------------------
>
> Key: ARTEMIS-4972
> URL: https://issues.apache.org/jira/browse/ARTEMIS-4972
> Project: ActiveMQ Artemis
> Issue Type: Bug
> Reporter: Suhov Roman
> Priority: Major
> Time Spent: 1h
> Remaining Estimate: 0h
>
> File:
> [https://github.com/apache/activemq-artemis/blob/2.36.0/artemis-server/src/main/java/org/apache/activemq/artemis/core/server/group/impl/LocalGroupingHandler.java]
> Line: 325 - 327
>
> The start() method should use a lock to access the expectedBindings variable
> to ensure thread safety, since other methods use the lock and interact with
> expectedBindings at the same time.
> Using the lock in the start() method ensures that access to the
> expectedBindings variable is safe in a multi-threaded environment, preventing
> potential thread contention issues.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
For further information, visit: https://activemq.apache.org/contact