lhotari opened a new issue, #22575: URL: https://github.com/apache/pulsar/issues/22575
### Search before asking - [X] I searched in the [issues](https://github.com/apache/pulsar/issues) and found nothing similar. ### Read release policy - [X] 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 master ### Minimal reproduce step TBD ### What did you expect to see? getting /metrics with gzip compression shouldn't fail ### What did you see instead? it sometimes fails ### Anything else? The problem in the code is here: https://github.com/apache/pulsar/blob/94f6c7ccd2bf8bc261d45ab41f6c7f123359fa47/pulsar-broker/src/main/java/org/apache/pulsar/broker/stats/prometheus/PrometheusMetricsGenerator.java#L236-L241 putInts will fail if the compress buffer doesn't have remaining space. ### Are you willing to submit a PR? - [X] I'm willing to submit a PR! -- 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. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
