Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] pulsar-perf outputs values in nanos with values saying "ms" #23879

Open
2 of 3 tasks
dlg99 opened this issue Jan 22, 2025 · 0 comments
Open
2 of 3 tasks

[Bug] pulsar-perf outputs values in nanos with values saying "ms" #23879

dlg99 opened this issue Jan 22, 2025 · 0 comments
Labels
type/bug The PR fixed a bug or issue reported a bug

Comments

@dlg99
Copy link
Contributor

dlg99 commented Jan 22, 2025

Search before asking

  • I searched in the issues and found nothing similar.

Read release policy

  • I understand that unsupported versions don't get bug fixes. I will attempt to reproduce the issue on a supported version of Pulsar client and Pulsar broker.

Version

2.10+, 3.x

Minimal reproduce step

run pulsar-perf consume

What did you expect to see?

latency values in milliseconds, as labels suggest

What did you see instead?

org.apache.pulsar.testclient.PerformanceConsumer - Throughput received:  332571 msg --- 3002.897  msg/s --- 165.144 Mbit/s  --- Latency: mean: 18740630.690 ms - med: 18640383 - 95pct: 20181503 - 99pct: 20482175 - 99.9pct: 20512767 - 99.99pct: 20512895 - Max: 20512895

value sin nanos with labels "ms"

Anything else?

I think here

log.info(
"Throughput received: {} msg --- {} msg/s --- {} Mbit/s "
+ "--- Latency: mean: {} ms - med: {} "
+ "- 95pct: {} - 99pct: {} - 99.9pct: {} - 99.99pct: {} - Max: {}",
intFormat.format(total),
dec.format(rate), dec.format(throughput), dec.format(reportHistogram.getMean()),
reportHistogram.getValueAtPercentile(50), reportHistogram.getValueAtPercentile(95),
reportHistogram.getValueAtPercentile(99), reportHistogram.getValueAtPercentile(99.9),
reportHistogram.getValueAtPercentile(99.99), reportHistogram.getMaxValue());
(and possibly in other places) histogram returns latency as it tracked, in nanoseconds. The perf tool should translate these into millis, as labeled.

This is not a blocker/not a priority, logging this as "gotcha" if anyone else wonders about the mismatch between values and labels.

Are you willing to submit a PR?

  • I'm willing to submit a PR!
@dlg99 dlg99 added the type/bug The PR fixed a bug or issue reported a bug label Jan 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type/bug The PR fixed a bug or issue reported a bug
Projects
None yet
Development

No branches or pull requests

1 participant