muralibasani commented on code in PR #22221:
URL: https://github.com/apache/kafka/pull/22221#discussion_r3213791084


##########
streams/src/test/java/org/apache/kafka/streams/kstream/internals/KStreamRepartitionTest.java:
##########
@@ -170,4 +176,39 @@ private String toRepartitionTopicName(final String input) {
     private String repartitionOutputTopic(final Properties props, final String 
repartitionOperationName) {
         return props.getProperty(StreamsConfig.APPLICATION_ID_CONFIG) + "-" + 
repartitionOperationName + "-repartition";
     }
+
+    @Test
+    public void canMarkAsPartitionedWhenKeyNotChanging() {
+        final KStream<Integer, String> notMarked = builder.<Integer, 
String>stream(inputTopic).mapValues(v -> v + ":" + v);
+        final String topologyNotMarked = builder.build().describe().toString();
+        notMarked.markAsPartitioned();
+        final String topologyMarked = builder.build().describe().toString();
+        assertEquals(topologyNotMarked, topologyMarked);

Review Comment:
   May be also assert for notMarked and notMarked.markAsPartitioned() to be 
same as `this` is returned in the impl



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

Reply via email to