Qpid
  1. Qpid
  2. QPID-2438

Performance tests do not correctly populate the message with the given MessageSize

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Critical Critical
    • Resolution: Fixed
    • Affects Version/s: M3, M4, 0.5, 0.6
    • Fix Version/s: 0.7
    • Component/s: Java Performance Tests
    • Labels:
      None

      Description

      The TestUtils class method createTestMessageOfSize does not actually create messages of the requested size.
      Requests for messages > 112 bytes will result in only 112 byte messages. Message size requests of less than 112 bytes will result in a message of up to 12Kbytes.

      It can be fixed by either:
      1) Fixing the erroneous div and mod calculations,
      2) Replacing the complex for loops with a single for loop from 0 to size,
      3) using an empty byte array : new byte[size].

        Activity

        Martin Ritchie created issue -
        Martin Ritchie made changes -
        Field Original Value New Value
        Status Open [ 1 ] In Progress [ 3 ]
        Martin Ritchie made changes -
        Status In Progress [ 3 ] Ready To Review [ 10006 ]
        Robbie Gemmell made changes -
        Status Ready To Review [ 10006 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]

          People

          • Assignee:
            Martin Ritchie
            Reporter:
            Martin Ritchie
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development