Rocksdb compaction not triggered or not happening

时间:2019-05-31 12:22:21

标签: apache-kafka-streams rocksdb

I have 2 kafka streams state stores implemented. They are both persistent key value stores. The problem that I am facing is the compaction of rocksdb is happening only in one of the state stores and the other state store is just piling on more sst files and in turn increasing the disk space. I tried to debug the rocksdb logs. Everything looked fine there. The compactions were happening fine for one of the state stores and there was no info related to another store. Can anyone please help on this aspect?

To add more helpful info, this is happening only inside the container. I tried to replicate this with a sample app in my local developer environment, there were no issues there.

1 个答案:

答案 0 :(得分:0)

使用迭代器后必须显式关闭迭代器。这是问题的主要原因。