Uploaded image for project: 'ActiveMQ Artemis'
  1. ActiveMQ Artemis
  2. ARTEMIS-4972

The start() method should use a lock to access the expected binding variables.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • None
    • None
    • None

    Description

      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.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              suhov Suhov Roman
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 1h 10m
                  1h 10m