GitHub user xiaotao183 opened a pull request:
https://github.com/apache/kafka/pull/784
KAFKA-2993: Calculate compression rate at close() call
Buffer is rewound before the compression rate metric is updated which
results in 0 compress rate. The fix is to include a new compressRate field to
record the latest compression rate in ```close()``` and return it to sensor
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/xiaotao183/kafka kafka-2993
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/kafka/pull/784.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 #784
----
commit 77fae49f294009f432ad7e3158592b5a02c3a61a
Author: Xiao, Tao <[email protected]>
Date: 2016-01-17T11:04:54Z
Fixed KAFKA-2993 - Keep reference to compression rate instead of computing
at runtime
----
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---