Skip to content

Conversation

@lhotari
Copy link
Member

@lhotari lhotari commented Apr 12, 2021

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.

@lhotari
Copy link
Member Author

lhotari commented Apr 13, 2021

/pulsarbot run-failure-checks

@merlimat merlimat merged commit 187fb97 into apache:master Apr 13, 2021
eolivelli pushed a commit to datastax/pulsar that referenced this pull request May 17, 2021
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