Description
Using disableLogging() for either of the built-in state store types causes an initialization loop in the StreamThread.
Case A - this works just fine:
final StateStoreSupplier testStore = Stores.create(topic) .withStringKeys() .withStringValues() .inMemory() // .disableLogging() .maxEntries(10) .build();
Case B - this does not:
final StateStoreSupplier testStore = Stores.create(topic)
.withStringKeys()
.withStringValues()
.inMemory()
.disableLogging()
.maxEntries(10)
.build();
A brief debugging dive shows that in Case B, AssignedTasks.allTasksRunning() never returns true, because of a remnant entry in AssignedTasks#restoring that never gets properly restored.
See App.java for a working test (requires ZK + Kafka ensemble, and at least one keyed message produced to the "test" topic)
Attachments
Attachments
Issue Links
- duplicates
-
KAFKA-5986 Streams State Restoration never completes when logging is disabled
- Resolved
- links to