Skip to content

KV TTL (stream max_age) versus stream duplicate_window #1301

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

Merged
merged 2 commits into from
Apr 9, 2025

Conversation

scottf
Copy link
Contributor

@scottf scottf commented Apr 9, 2025

Ensure that duplicate window is

  • never more than 2 minutes
  • never greater than the max_age

@scottf scottf requested a review from MauriceVanVeen April 9, 2025 13:58
String name;
StreamConfiguration.Builder scBuilder;
protected String name;
protected Duration ttl = Duration.ZERO;
Copy link
Contributor Author

Choose a reason for hiding this comment

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

added this do I can track it easier at the build() stage

Copy link
Member

@MauriceVanVeen MauriceVanVeen left a comment

Choose a reason for hiding this comment

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

LGTM, one small comment

if (ttlMs > 0 && ttlMs < SERVER_DEFAULT_DUPLICATE_WINDOW_MS) {
dupeMs = ttlMs;
}
scBuilder.duplicateWindow(dupeMs).build();
Copy link
Member

Choose a reason for hiding this comment

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

I think this .build() could be removed?

@scottf scottf merged commit 3a12b7a into main Apr 9, 2025
4 checks passed
@scottf scottf deleted the kv-max-age-vs-duplicate-window branch April 9, 2025 14:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants