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

Move RoutingContext::processReferences to PostOfficeImpl

    XMLWordPrintableJSON

Details

    • Task
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 2.25.0
    • None
    • None

    Description

      Reasoning:

      • We reuse the Routing Context as an optimization on the ServerSession.
      • By the time the Routing is done, we will process the references on a IO callback.
      • if anyone used any state in between the Routing and Storage, you could have an invalid operation.

      We were lucky that the method processReferences in PostOffice was pretty much static and no actual bug happened because of that, however I almost thought we had something scary going on.

      So, to avoid this kind of issue ever being introduced in the codebase I am moving the processReferences away from RoutingContext.

      Attachments

        Issue Links

          Activity

            People

              clebertsuconic Clebert Suconic
              clebertsuconic Clebert Suconic
              Votes:
              0 Vote for this issue
              Watchers:
              2 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 - 20m
                  20m