Skip to content
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

[flink] Emit event time lag should not increase when no new records are read #4281

Merged
merged 1 commit into from
Oct 3, 2024

Conversation

tsreaper
Copy link
Contributor

Purpose

Currently for source with consumers, currentEmitEventTimeLag will continue to increase even if no new records are read. According to the definition of this metrics, this time lag is the different between the event time and the emit time of the last record.

This PR fixes the issue by sticking to the definition of the metrics.

Tests

Unit tests.

API and Format

No format changes.

Documentation

No new feature.

@wwj6591812
Copy link
Contributor

+1

Copy link
Contributor

@JingsongLi JingsongLi left a comment

Choose a reason for hiding this comment

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

+1

@JingsongLi JingsongLi merged commit bd156e9 into apache:master Oct 3, 2024
10 checks passed
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.

3 participants