m1a2st commented on code in PR #20650:
URL: https://github.com/apache/kafka/pull/20650#discussion_r2410802803


##########
streams/src/main/java/org/apache/kafka/streams/CloseOptions.java:
##########
@@ -81,7 +81,11 @@ public static CloseOptions groupMembershipOperation(final 
GroupMembershipOperati
      * @return this {@code CloseOptions} instance.
      */
     public CloseOptions withTimeout(final Duration timeout) {
-        this.timeout = Optional.ofNullable(timeout);
+        if (timeout == null) {
+            this.timeout = Optional.of(Duration.ofMillis(Long.MAX_VALUE));

Review Comment:
   Thanks, addressed it.



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