chia7712 commented on a change in pull request #9369:
URL: https://github.com/apache/kafka/pull/9369#discussion_r507454409



##########
File path: 
streams/src/main/java/org/apache/kafka/streams/processor/internals/StreamThread.java
##########
@@ -361,7 +363,7 @@ public static StreamThread create(final 
InternalTopologyBuilder builder,
         final AtomicLong nextScheduledRebalanceMs = new 
AtomicLong(Long.MAX_VALUE);
         
consumerConfigs.put(StreamsConfig.InternalConfig.NEXT_SCHEDULED_REBALANCE_MS, 
nextScheduledRebalanceMs);
 
-        final String originalReset = (String) 
consumerConfigs.get(ConsumerConfig.AUTO_OFFSET_RESET_CONFIG);
+        final String originalReset = OffsetResetStrategy.forName((String) 
consumerConfigs.get(ConsumerConfig.AUTO_OFFSET_RESET_CONFIG)).toString();

Review comment:
       Not sure whether this change is necessary. The value should be validated 
already.




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

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Reply via email to