[ https://issues.apache.org/jira/browse/KAFKA-3229?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15142936#comment-15142936 ]
ASF GitHub Bot commented on KAFKA-3229: --------------------------------------- GitHub user tomdearman opened a pull request: https://github.com/apache/kafka/pull/904 KAFKA-3229 ensure that root statestore is registered with ProcessorStateManager Pass through the root StateStore in the init method so the inner StateStore can register that object. You can merge this pull request into a Git repository by running: $ git pull https://github.com/tomdearman/kafka KAFKA-3229 Alternatively you can review and apply these changes as the patch at: https://github.com/apache/kafka/pull/904.patch To close this pull request, make a commit to your master/trunk branch with (at least) the following in the commit message: This closes #904 ---- ---- > Root statestore is not registered with ProcessorStateManager, inner state > store is registered instead > ----------------------------------------------------------------------------------------------------- > > Key: KAFKA-3229 > URL: https://issues.apache.org/jira/browse/KAFKA-3229 > Project: Kafka > Issue Type: Bug > Components: kafka streams > Affects Versions: 0.9.1.0 > Environment: MacOS El Capitan > Reporter: Tom Dearman > Fix For: 0.9.1.0 > > > When the hierarchy of nested StateStores are created, init is called on the > root store, but parent StateStores such as MeteredKeyValueStore just call > the contained StateStore until a store such as MemoryStore calls > ProcessorContext.register, but it passes 'this' to the method so only that > inner state store (MemoryStore in this case) is registered with > ProcessorStateManager. As state is added to the store none of the parent > stores code will be called, metering, or even StoreChangeLogger to put the > state on the kafka topic. -- This message was sent by Atlassian JIRA (v6.3.4#6332)