Uploaded image for project: 'Qpid'
  1. Qpid
  2. QPID-2438

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

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Critical
    • Resolution: Fixed
    • M3, M4, 0.5, 0.6
    • 0.7
    • Java Performance Tests
    • 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].

      Attachments

        Activity

          People

            ritchiem Martin Ritchie
            ritchiem Martin Ritchie
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: