Skip to content

Conversation

m1a2st
Copy link
Collaborator

@m1a2st m1a2st commented Oct 7, 2025

This PR is a follow-up to KAFKA-18193. It addresses the need for a null
check and an improved error message. Please refer to the previous
comments and the review of
#19955 (review)
for more context.

Reviewers: Chia-Ping Tsai [email protected]

@m1a2st m1a2st force-pushed the MINOR-followup-KAFKA-18193 branch from e572ac8 to c231f07 Compare October 7, 2025 13:43
@github-actions github-actions bot removed the triage PRs from the community label Oct 8, 2025
final CloseOptionsInternal optionsInternal = new CloseOptionsInternal(options);
final String msgPrefix = prepareMillisCheckFailMsgPrefix(optionsInternal.timeout(), "timeout");
final long timeoutMs = validateMillisecondDuration(optionsInternal.timeout().get(), msgPrefix);
final Duration timeout = optionsInternal.timeout().orElseGet(() -> Duration.ofMillis(Long.MAX_VALUE));
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

could you please add test for empty timeout?

Copy link
Member

@chia7712 chia7712 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@chia7712 chia7712 merged commit b1b330e into apache:trunk Oct 12, 2025
24 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants