lhotari opened a new pull request #10193:
URL: https://github.com/apache/pulsar/pull/10193
### Motivation
PrometheusMetricsTest has been flaky with this type of error mesage:
`java.lang.AssertionError: line
pulsar_broker_publish_latency{cluster="test",quantile="0.0"} +Inf does not
match pattern ^(\w+)\{([^\}]+)\}\s(-?[\d\w\.-]+)(\s(\d+))?$ expected [true] but
found [false]`
The problem is that the metrics parsing hasn't properly handled `+Inf` which
is used as a value when there are no metrics.
### Modifications
Fix the regex pattern to handle `+Inf` and add tests.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]