Skip to content

MINOR: Followup KAFKA-18193 for null check and error message#20650

Merged
chia7712 merged 9 commits intoapache:trunkfrom
m1a2st:MINOR-followup-KAFKA-18193
Oct 12, 2025
Merged

MINOR: Followup KAFKA-18193 for null check and error message#20650
chia7712 merged 9 commits intoapache:trunkfrom
m1a2st:MINOR-followup-KAFKA-18193

Conversation

@m1a2st
Copy link
Copy Markdown
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 chia7712@gmail.com

@m1a2st m1a2st force-pushed the MINOR-followup-KAFKA-18193 branch from e572ac8 to c231f07 Compare October 7, 2025 13:43
Comment thread streams/src/main/java/org/apache/kafka/streams/CloseOptions.java Outdated
@github-actions github-actions Bot removed the triage PRs from the community label Oct 8, 2025
Comment thread streams/src/main/java/org/apache/kafka/streams/KafkaStreams.java Outdated
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
Copy Markdown
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
Copy Markdown
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
eduwercamacaro pushed a commit to littlehorse-enterprises/kafka that referenced this pull request Nov 12, 2025
…20650)

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
apache#19955 (review)
for more context.

Reviewers: Chia-Ping Tsai <chia7712@gmail.com>
shashankhs11 pushed a commit to shashankhs11/kafka that referenced this pull request Dec 15, 2025
…20650)

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
apache#19955 (review)
for more context.

Reviewers: Chia-Ping Tsai <chia7712@gmail.com>
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