You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@jmeter.apache.org by bu...@apache.org on 2012/04/05 17:21:22 UTC

DO NOT REPLY [Bug 53039] New: SampleResult's "bytes" and "bodySize" are currently "int" but should be "long"

https://issues.apache.org/bugzilla/show_bug.cgi?id=53039

             Bug #: 53039
           Summary: SampleResult's "bytes" and "bodySize" are currently
                    "int" but should be "long"
           Product: JMeter
           Version: 2.5.1
          Platform: PC
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Main
        AssignedTo: issues@jmeter.apache.org
        ReportedBy: jasonwmcswain@gmail.com
    Classification: Unclassified


While writing some custom "JavaSamplerClient" classes, i ran into a problem
with the JMeter SampleResult class.  Currently there are some fields that are
too small.

    private int bytes = 0; 

    private int bodySize = 0;

The fields noted above and their relative getter/setter methods use int.  this
is normally fine, but in the case where you are testing throughput of large
streams, you run into a problem.  MAX_INT=2,147,483,647

As you can see this is basically a 2GB stream.  if i wanted to write any stream
bigger than that i couldn't accurately calculate throughput with the
SampleResult class.

SampleResult result = new SampleResult();
result.setBytes(long);
result.sampleStart();
// like write large file to cloud storage server.
result.sampleEnd();

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

DO NOT REPLY [Bug 53039] SampleResult's "bytes" and "bodySize" are currently "int" but should be "long"

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=53039

Philippe Mouawad <p....@ubik-ingenierie.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |p.mouawad@ubik-ingenierie.c
                   |                            |om
           Platform|PC                          |All
         OS/Version|                            |All
           Severity|normal                      |enhancement

--- Comment #1 from Philippe Mouawad <p....@ubik-ingenierie.com> 2012-04-07 13:33:36 UTC ---
This can be quite impacting and introduces issues with arrays of bytes as they
are limited to int.

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.