pegasas commented on code in PR #18154:
URL: https://github.com/apache/kafka/pull/18154#discussion_r1883524628


##########
streams/src/test/java/org/apache/kafka/streams/processor/internals/ProcessorTopologyTest.java:
##########
@@ -1568,21 +1105,19 @@ private Topology 
createSimpleTopologyWithDroppingPartitioner() {
                 .addSink("sink", OUTPUT_TOPIC_1, new DroppingPartitioner(), 
"processor");
     }
 
-    @Deprecated // testing old PAPI
     private Topology createStatefulTopology(final String storeName) {
         return topology
             .addSource("source", STRING_DESERIALIZER, STRING_DESERIALIZER, 
INPUT_TOPIC_1)
-            .addProcessor("processor", define(new 
OldAPIStatefulProcessor(storeName)), "source")
+            .addProcessor("processor", () -> new StatefulProcessor(storeName), 
"source")

Review Comment:
   Indeed, it looks like `OldAPIStatefulProcessor` has been corrected to 
`StatefulProcessor` for migrating to current API. Got it! Thanks for teaching!



-- 
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

Reply via email to