Skip to content

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