Qpid
  1. Qpid
  2. QPID-3010

broker uses the MINA PooledByteBufferAllocator instead of the SimpleByteBufferAllocator

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Critical Critical
    • Resolution: Fixed
    • Affects Version/s: 0.6, 0.7, 0.8
    • Fix Version/s: 0.9
    • Component/s: Java Broker
    • Labels:
      None

      Description

      The broker is currently making use of the PooledByteBufferAllocator, which was not expected. The codebase in general (client/common/broker) makes many attempts to ensure that the SimpleByteBufferAllocator is used by default, however previous refactoring of the network layer has lead to a path in which the broker is able to start without engaging use of the SimpleByteBufferAllocator.

      As a result, MINA is effectively able to overwrite existing frame payload in the broker at random before a given command is completed and frame payloads are combined in a new buffer. This can also lead to unexpected situations where a ByteBuffer attempts to add its contents to itself.

      MINANetworkDriver should ensure it always sets use of the SimpleByteBufferAllocator.

        Activity

        No work has yet been logged on this issue.

          People

          • Assignee:
            Andrew Kennedy
            Reporter:
            Robbie Gemmell
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development