-
Notifications
You must be signed in to change notification settings - Fork 14.2k
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
MINOR: Session windows should accept zero as session gap #18734
Conversation
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.
I don't see why we shouldn't support this! I feel like this would make a good "time-based" deduplicator or something like that.
Java 17 passed. Java 23:
|
Fix for |
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.
Makes sense to me modulo the javadocs.
Actually do we have any docs or examples anywhere that would need to be updated...?
if (gapMs <= 0) { | ||
throw new IllegalArgumentException("Gap time cannot be zero or negative."); | ||
if (gapMs < 0) { | ||
throw new IllegalArgumentException("Gap time cannot be negative."); |
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.
Seems like we should update the javadocs for the public APIs to define the inactivity gap semantics/boundaries
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.
JavaDocs. Good catch!
Did briefly look into docs. Did not found anything that we would need to update.
No description provided.