cadonna commented on code in PR #12638:
URL: https://github.com/apache/kafka/pull/12638#discussion_r970630206
##########
streams/src/main/java/org/apache/kafka/streams/processor/internals/ProcessorStateManager.java:
##########
@@ -209,7 +212,9 @@ void registerStateStores(final List<StateStore> allStores,
final InternalProcess
processorContext.uninitialize();
for (final StateStore store : allStores) {
if (stores.containsKey(store.name())) {
- maybeRegisterStoreWithChangelogReader(store.name());
+ if (!stateUpdaterEnabled) {
+ maybeRegisterStoreWithChangelogReader(store.name());
+ }
Review Comment:
Only register changelogs if the state updater is disabled.
##########
streams/src/main/java/org/apache/kafka/streams/processor/internals/ProcessorStateManager.java:
##########
@@ -352,7 +357,9 @@ public void registerStore(final StateStore store,
// on the state manager this state store would be closed as well
stores.put(storeName, storeMetadata);
- maybeRegisterStoreWithChangelogReader(storeName);
+ if (!stateUpdaterEnabled) {
+ maybeRegisterStoreWithChangelogReader(storeName);
+ }
Review Comment:
Only register changelogs if the state updater is disabled.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]