Hi:

I hava a confuse about the policy of log compact, I hava 15 partitions, my 
server.properties like this:
log.cleanup.policy=compact
compression.type=gzip
log.retention.hours=168
#log.retention.bytes=1073741824
log.segment.bytes=1073741824
log.retention.check.interval.ms=300000

a week later, other partitions are compressed, only partition 0 did not:
part 0:
root@xxx:~/kafka/kafka_2.12-1.0.0# ll -h /data/kafka-0-logs/test-0/
total 388M
-rw-r--r--  1 root root  10M Dec 26 11:17 00000000000000000000.index
-rw-r--r--  1 root root 387M Dec 26 11:17 00000000000000000000.log
-rw-r--r--  1 root root  10M Dec 26 11:17 00000000000000000000.timeindex
-rw-r--r--  1 root root   17 Dec 19 22:58 leader-epoch-checkpoint
this is part 1:
root@xxx:~/kafka/kafka_2.12-1.0.0# ll -h /data/kafka-0-logs/test-1/
total 75M
-rw-r--r--  1 root root  12K Dec 25 12:55 00000000000000000000.index
-rw-r--r--  1 root root  48M Dec 25 12:55 00000000000000000000.log
-rw-r--r--  1 root root  17K Dec 25 12:55 00000000000000000000.timeindex
-rw-r--r--  1 root root  10M Dec 26 11:18 00000000000000826909.index
-rw-r--r--  1 root root  28M Dec 26 11:19 00000000000000826909.log
-rw-r--r--  1 root root   10 Dec 25 12:55 00000000000000826909.snapshot
-rw-r--r--  1 root root  10M Dec 26 11:18 00000000000000826909.timeindex
-rw-r--r--  1 root root   17 Dec 19 22:58 leader-epoch-checkpoint

I don't know why part 0 was not compassed? what should I do? I use version is  
'2.12-1.0.0'.

Thanks.
Feng

Reply via email to