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

ActiveMQOutputStream shoud reserve the user property only once

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Trivial
    • Resolution: Fixed
    • Affects Version/s: 5.5.1, 5.6.0, 5.7.0
    • Fix Version/s: 5.8.0
    • Component/s: Broker
    • Labels:

      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

            • Assignee:
              tabish Timothy A. Bish
              Reporter:
              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