GitHub user ijuma opened a pull request: https://github.com/apache/kafka/pull/3996
KAFKA-5746; Return 0.0 from Metric.value() instead of throwing exception This is less likely to break custom metric reporters and since the method is deprecated, people will be warned about this potential issue. You can merge this pull request into a Git repository by running: $ git pull https://github.com/ijuma/kafka avoid-exception-in-measurable-value Alternatively you can review and apply these changes as the patch at: https://github.com/apache/kafka/pull/3996.patch To close this pull request, make a commit to your master/trunk branch with (at least) the following in the commit message: This closes #3996 ---- commit e97844d036dfe1bc2e795ddb12b5c61201ab3c9c Author: Ismael Juma <ism...@juma.me.uk> Date: 2017-09-29T20:14:57Z KAFKA-5746; Return 0.0 from Metric.value() instead of throwing exception This is less likely to break custom metric reporters and since the method is deprecated, people will be warned about this potential issue. ---- ---