You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@kafka.apache.org by "Patrik Kleindl (JIRA)" <ji...@apache.org> on 2019/03/01 08:10:00 UTC

[jira] [Created] (KAFKA-8023) Improve global state store restoration by using multiple update threads

Patrik Kleindl created KAFKA-8023:
-------------------------------------

             Summary: Improve global state store restoration by using multiple update threads
                 Key: KAFKA-8023
                 URL: https://issues.apache.org/jira/browse/KAFKA-8023
             Project: Kafka
          Issue Type: Improvement
          Components: streams
            Reporter: Patrik Kleindl


Currently global state stores are restored sequentially and the partitions of each global state store are restored sequentially too.

Loop over stores:

https://github.com/apache/kafka/blob/b03e8c234a8aeecd10c2c96b683cfb39b24b548a/streams/src/main/java/org/apache/kafka/streams/processor/internals/GlobalStateManagerImpl.java#L155

Loop over partitions:

https://github.com/apache/kafka/blob/b03e8c234a8aeecd10c2c96b683cfb39b24b548a/streams/src/main/java/org/apache/kafka/streams/processor/internals/GlobalStateManagerImpl.java#L256

It would be a great improvement if one or both of those loops could be processed in parallel.

Possible related task is https://issues.apache.org/jira/browse/KAFKA-6721 

Mail discussion: https://lists.apache.org/thread.html/6fc4772eb8635c04b0ee6682003a99a5ef37ebccffea6c89752e96b1@%3Cusers.kafka.apache.org%3E



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)