-
Notifications
You must be signed in to change notification settings - Fork 13.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
KAFKA-7446: Fix the duration and instant validation messages #5930
Conversation
WindowDuration
and AdvanceInterval
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the PR. Couple of comments.
Note: build failed with checkstyle error; please fix.
streams/src/main/java/org/apache/kafka/streams/errors/InvalidAdvanceIntervalException.java
Outdated
Show resolved
Hide resolved
streams/src/main/java/org/apache/kafka/streams/errors/InvalidWindowDurationException.java
Outdated
Show resolved
Hide resolved
streams/src/main/java/org/apache/kafka/streams/internals/ApiUtils.java
Outdated
Show resolved
Hide resolved
ping @jaceklaskowski @guozhangwang. any thoughts about the changes? TIA |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for updating the PR. Couple of follow ups.
streams/src/main/java/org/apache/kafka/streams/kstream/TimeWindows.java
Outdated
Show resolved
Hide resolved
streams/src/main/java/org/apache/kafka/streams/kstream/TimeWindows.java
Outdated
Show resolved
Hide resolved
streams/src/test/java/org/apache/kafka/streams/kstream/TimeWindowsTest.java
Outdated
Show resolved
Hide resolved
streams/src/main/java/org/apache/kafka/streams/internals/ApiUtils.java
Outdated
Show resolved
Hide resolved
duration
and instant
validation messages
duration
and instant
validation messages
retest this please |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the update. Some follow up nits.
streams/src/main/java/org/apache/kafka/streams/KafkaStreams.java
Outdated
Show resolved
Hide resolved
streams/src/main/java/org/apache/kafka/streams/internals/ApiUtils.java
Outdated
Show resolved
Hide resolved
streams/src/main/java/org/apache/kafka/streams/internals/ApiUtils.java
Outdated
Show resolved
Hide resolved
@mjsax, Thank you for the review comments. I addressed all the comments. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM.
Call for second review @jaceklaskowski @guozhangwang @bbejeck @vvcephei
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just one minor nit otherwise LGTM.
I have one thought for a follow-on PR, we could consider moving the prepareMillisCheckFailMsgPrefix
inside the validateXXX
methods and create the formatted string at that point saving the users a method call.
But I think this PR is good enough as is.
streams/src/main/java/org/apache/kafka/streams/internals/ApiUtils.java
Outdated
Show resolved
Hide resolved
Changes made as part of this commit. - Improved error message for better readability at millis validation utility - Corrected java documentation on `AdvanceInterval` check. - Added caller specific prefix text to make error message more clear to developers/users.
…#5930) Changes made as part of this commit. - Improved error message for better readability at millis validation utility - Corrected java documentation on `AdvanceInterval` check. - Added caller specific prefix text to make error message more clear to developers/users. Reviewers: Matthias J. Sax <matthias@confluent.io>, Bill Bejeck <bill@confluent.io>, Jacek Laskowski <jacek@japila.pl>
Changes made as part of this PR for KAFKA-7446
AdvanceInterval
check.Core and Streams modules' JUnit tests are successful in local but
tests related to file system is failed since I am running on Windows.
Committer Checklist (excluded from commit message)