Skip to content

Comments

The latency of BenchThroughputLatency may be wrong due to Integer overflow when we do a large scale benchmark test #2381

Merged
sijie merged 1 commit intoapache:masterfrom
maoling:BenchThroughputLatency-latency-wrong
Aug 13, 2020
Merged

The latency of BenchThroughputLatency may be wrong due to Integer overflow when we do a large scale benchmark test #2381
sijie merged 1 commit intoapache:masterfrom
maoling:BenchThroughputLatency-latency-wrong

Conversation

@maoling
Copy link
Member

@maoling maoling commented Jul 20, 2020

  • When latency.size is is more than 20,000,000(e.g, 25000000),
    (size * percentile) / 100 will be a negative number due to Integer overflow and the latency will be wrong.
  • For example: size = 25000000, percentile = 99, sampleSize = -18199672

…rflow when we do a large scale benchmark test
Copy link
Contributor

@eolivelli eolivelli left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM
Welcome to BK @maoling !

@eolivelli
Copy link
Contributor

@rdhabalia @jiazhai PTAL

@eolivelli
Copy link
Contributor

rerun failure tests

@sijie sijie added this to the 4.12.0 milestone Aug 13, 2020
@sijie sijie merged commit 43fab26 into apache:master Aug 13, 2020
sijie pushed a commit that referenced this pull request Aug 13, 2020
…rflow when we do a large scale benchmark test

- When` latency.size` is  is more than `20,000,000`(e.g, `25000000`),
`(size * percentile) / 100` will be a negative number due to Integer overflow and the latency will be wrong.
- For example: `size `= 25000000, `percentile `= 99, `sampleSize `= -18199672

Reviewers: Enrico Olivelli <eolivelli@gmail.com>, Sijie Guo <None>

This closes #2381 from maoling/BenchThroughputLatency-latency-wrong

(cherry picked from commit 43fab26)
Signed-off-by: Sijie Guo <sijie@apache.org>
@maoling maoling deleted the BenchThroughputLatency-latency-wrong branch August 14, 2020 02:49
Ghatage pushed a commit to Ghatage/bookkeeper that referenced this pull request Oct 6, 2020
…rflow when we do a large scale benchmark test

- When` latency.size` is  is more than `20,000,000`(e.g, `25000000`),
`(size * percentile) / 100` will be a negative number due to Integer overflow and the latency will be wrong.
- For example: `size `= 25000000, `percentile `= 99, `sampleSize `= -18199672

Reviewers: Enrico Olivelli <eolivelli@gmail.com>, Sijie Guo <None>

This closes apache#2381 from maoling/BenchThroughputLatency-latency-wrong
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants