Skip to content

Conversation

@gyfora
Copy link
Contributor

@gyfora gyfora commented Oct 4, 2024

What is the purpose of the change

Use / enforce the Flink JobStatus enum directly in job status.state this how we already use it and it would simplify the code in a lot of places to avoid string juggling .

Verifying this change

Tests have been updated to use/expect the enum and e2es should further cover existing behaviour.

The change have been manually verified with multiple envs and Flink versions.

Does this pull request potentially affect one of the following parts:

  • Dependencies (does it add or upgrade a dependency): no
  • The public API, i.e., is any changes to the CustomResourceDescriptors: yes
  • Core observer or reconciler logic that is regularly executed: yes

Copy link
Contributor

@gaborgsomogyi gaborgsomogyi left a comment

Choose a reason for hiding this comment

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

The change looks trivial and good. What I can't justify is why RestApiMetricsCollectorTest failed. Is that flaky?

@gyfora
Copy link
Contributor Author

gyfora commented Oct 4, 2024

The change looks trivial and good. What I can't justify is why RestApiMetricsCollectorTest failed. Is that flaky?

Yes that test is flaky and not related/dependent on these changes.

@gyfora gyfora merged commit b3b45ba into apache:main Oct 6, 2024
229 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