Skip to content

Conversation

@Pengzna
Copy link
Collaborator

@Pengzna Pengzna commented Dec 9, 2025

details can be referred from comments in code

Comment on lines +373 to +375
/** Delay analyzer for tracking data arrival delays and calculating safe watermarks */
private final DelayAnalyzer delayAnalyzer;

Copy link
Contributor

Choose a reason for hiding this comment

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

Add a switch for this to avoid affecting performance of existing scenarios.

Comment on lines +71 to +80
/** Default window size, empirical value: 10000 sample points */
public static final int DEFAULT_WINDOW_SIZE = 10000;

/** Recommended window size range */
public static final int MIN_WINDOW_SIZE = 1000;

public static final int MAX_WINDOW_SIZE = 100000;

/** Default confidence level: 99% */
public static final double DEFAULT_CONFIDENCE_LEVEL = 0.99;
Copy link
Contributor

Choose a reason for hiding this comment

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

better to add as some configurations.

Comment on lines +130 to +134
@TestOnly
public DelayAnalyzer(int windowSize, int placeHolder) {
this.windowSize = windowSize;
this.delaySamples = new long[windowSize];
}
Copy link
Contributor

Choose a reason for hiding this comment

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

May use a static method instead of adding a hard-to-understand placeHolder

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