简体   繁体   中英

Kafka Streams - Global State Store restoration before stream threads starts processing

I have Global State Store attached my topology. Global state store in reading from compacted topic. This global state store stores 100,000 records and these records should be there in state store for correct processing of the topology.

Question: Q. During application restart, kafka streams will start the global state store thread and make sure that the state is fully built before starting streams threads ?

I am trying to find some documentation related to this topic Please point me to code or documentation also.

It depends if there is still any state remaining in the state.dir local filesystem for your application.id .

If there is, it'll start rebuilding data onto there. Otherwise, the beginning of the topic will have to be consumed to recreate that data

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM