You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@kafka.apache.org by "TAO XIAO (JIRA)" <ji...@apache.org> on 2015/12/16 04:25:46 UTC
[jira] [Created] (KAFKA-2993) compression-rate-avg always returns 0
event with compression.type being set
TAO XIAO created KAFKA-2993:
-------------------------------
Summary: compression-rate-avg always returns 0 event with compression.type being set
Key: KAFKA-2993
URL: https://issues.apache.org/jira/browse/KAFKA-2993
Project: Kafka
Issue Type: Bug
Reporter: TAO XIAO
Assignee: TAO XIAO
Priority: Minor
The producer metric compression-rate-avg always returns 0 even with compression.type set to snappy. I drilled down the code and discovered that the position of bytebuffer in org.apache.kafka.common.record.Compressor is reset to 0 by RecordAccumulator.drain() before calling metric updates in sender thread.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)