Uploaded image for project: 'ActiveMQ Classic'
  1. ActiveMQ Classic
  2. AMQ-4241

ActiveMQOutputStream shoud reserve the user property only once

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Trivial
    • Resolution: Fixed
    • 5.5.1, 5.6.0, 5.7.0
    • 5.8.0
    • Broker

    Description

      ActiveMQOutputStream should only reserve the properties from the end user
      by the first message instead of reserving the properties by every message under the hood.
      While ActiveMQInputStream can obtain those properties by the first incoming message.
      By the way, the exposed call of the receive method to the end user is dangerous because
      the user call on the receive method will cause the data the user received is not the
      whole. The payload of the message that the call returns is lost because it's out of the
      underlying stream.

      Attachments

        1. AMQ-4241.patch
          3 kB
          SuoNayi
        2. AMQ4241Test.java
          4 kB
          SuoNayi

        Activity

          People

            tabish Timothy A. Bish
            wangyin SuoNayi
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

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