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] support flink sourceIdleTime metric in ReadOperator #4644

Merged
merged 4 commits into from
Dec 8, 2024

Conversation

herefree
Copy link
Contributor

@herefree herefree commented Dec 5, 2024

Purpose

Support Flink sourceIdleTime metric in ReadOperator

Linked issue: close #4249

Tests

API and Format

Documentation

@@ -94,6 +98,8 @@ public void processElement(StreamRecord<Split> record) throws Exception {
.earliestFileCreationEpochMillis()
.orElse(FileStoreSourceReaderMetrics.UNDEFINED);
sourceReaderMetrics.recordSnapshotUpdate(eventTime);
// update idleStartTime when reading a new split
idleStartTime = FileStoreSourceReaderMetrics.UNDEFINED;
Copy link
Contributor

Choose a reason for hiding this comment

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

See InternalSourceReaderMetricGroup, it should be ACTIVE? Can you just copy the codes?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

See InternalSourceReaderMetricGroup, it should be ACTIVE? Can you just copy the codes?

fixed

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 96100eb into apache:master Dec 8, 2024
11 of 12 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.

[Feature] Support Flink sourceIdleTime metric in Paimon Source
2 participants