vvcephei commented on a change in pull request #11406: URL: https://github.com/apache/kafka/pull/11406#discussion_r734704339
########## File path: streams/src/main/java/org/apache/kafka/streams/KafkaStreams.java ########## @@ -1715,4 +1723,93 @@ protected void processStreamThread(final Consumer<StreamThread> consumer) { return Collections.unmodifiableMap(localStorePartitionLags); } + + public <K, V> StateSerdes<K, V> serdesForStore(final String storeName) { + if (!topologyMetadata.hasStore(storeName)) { + throw new UnknownStateStoreException( + "Cannot get state store " + storeName + " because no such store is registered in the topology." + ); + } + + // TODO this is a hack. We ought to be able to create the serdes independent of the + // TODO stores and cache them in the topology. Review comment: Or maybe cache them in KafkaStreams -- 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: jira-unsubscr...@kafka.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org