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-37596][metrics] Close metric group of a finished split #26388

Merged
merged 1 commit into from
Apr 8, 2025

Conversation

Efrat19
Copy link
Contributor

@Efrat19 Efrat19 commented Apr 2, 2025

Closing the metric group of a finished split
Added a test to verify the group is closed and metrics are deregistered.
For the test setup I removed a redundant initialization of org.apache.flink.streaming.api.operators.AbstractStreamOperator#metrics (since an UnregisteredMetricGroup is already passed to it via the org.apache.flink.streaming.runtime.tasks.StreamMockEnvironment#taskMetricGroup)

@flinkbot
Copy link
Collaborator

flinkbot commented Apr 2, 2025

CI report:

Bot commands The @flinkbot bot supports the following commands:
  • @flinkbot run azure re-run the last Azure build

@@ -103,7 +103,6 @@ public TestingSourceOperator(

this.subtaskIndex = subtaskIndex;
this.parallelism = parallelism;
this.metrics = UnregisteredMetricGroups.createUnregisteredOperatorMetricGroup();
Copy link
Contributor Author

Choose a reason for hiding this comment

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

@Efrat19 Efrat19 force-pushed the FLINK-37596 branch 2 times, most recently from 51c7469 to b8c9dbb Compare April 6, 2025 17:14
@Efrat19 Efrat19 marked this pull request as ready for review April 6, 2025 17:14
[FLINK-37596] Remove redundant metricGroup initialization
@pnowojski pnowojski merged commit c57c220 into apache:master Apr 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants