uber / uReplicator

Improvement of Apache Kafka Mirrormaker
Apache License 2.0
917 stars 199 forks source link

producer's setting for compression doesn't apply #150

Open aleksey-korolev opened 6 years ago

aleksey-korolev commented 6 years ago

config/producer.properties contains property compression.codec which doesn't have any effect on producer work:

# specify the compression codec for all data generated: none, gzip, snappy, lz4. # the old config values work as well: 0, 1, 2, 3 for none, gzip, snappy, lz4, respectively compression.codec=none

compression.type setting must be used instead of compression.codec setting. After setting compression.type=gzip I observed change of compression rate from 1.0 to a fractional value below 1 via JMX.

xhl1988 commented 6 years ago

Good finding. It should be compression.type