mjsax commented on code in PR #20735:
URL: https://github.com/apache/kafka/pull/20735#discussion_r2449109105


##########
streams/src/main/java/org/apache/kafka/streams/processor/internals/StreamThread.java:
##########
@@ -1587,11 +1587,15 @@ public void handleStreamsRebalanceData() {
     }
 
     private void handleMissingSourceTopicsWithTimeout(final String 
missingTopicsDetail) {
+        // Determine the timeout: use 2 * heartbeatIntervalMs
+        final int heartbeatIntervalMs = 
streamsRebalanceData.get().getHeartbeatIntervalMs();
+        final long timeoutMs = 2 * heartbeatIntervalMs;

Review Comment:
   Good suggestions by Copilot. I would apply this change.



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