[FLINK-35091][Metrics][Minor] Fix incorrect warning msg in JM log when use metric reporter #24654
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Desc
I encountered an issue while upgrading Flink from version 1.14 to 1.18. After the upgrade, I noticed that some monitoring metrics were not being reported to InfluxDB.
Upon checking the Job Manager (JM) logs, I found an error indicating that the previously used classes are no longer supported. However, there seems to be an oddly phrased error message that looks like it might have been written incorrectly.
The error message reads: "The reporter configuration of '{}' configures the reporter class, which is no a no longer supported approach to configure reporters." + " Please configure a factory class instead:"
I believe the correct phrasing should be: "The reporter configuration of '{}' configures the reporter class, which is a no longer supported approach to configure reporters." + " Please configure a factory class instead:"
It appears that the words "no a" were accidentally added, making the sentence grammatically incorrect and potentially confusing for users.
What is the purpose of the change
Fix incorrect warning msg in JM log when use metric reporter
Brief change log
Just warning log print
The error message reads: "The reporter configuration of '{}' configures the reporter class, which is no a no longer supported approach to configure reporters." + " Please configure a factory class instead:"
I believe the correct phrasing should be: "The reporter configuration of '{}' configures the reporter class, which is a no longer supported approach to configure reporters." + " Please configure a factory class instead:"
Verifying this change
No need to test
Does this pull request potentially affect one of the following parts:
@Public(Evolving)
: (no)Documentation