[FLINK-35091][Metrics][Minor] Fix incorrect warning msg in JM log when use metric reporter
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:
- Dependencies (does it add or upgrade a dependency): (no)
- The public API, i.e., is any changed class annotated with
@Public(Evolving): (no) - The serializers: (no)
- The runtime per-record code paths (performance sensitive): (no )
- Anything that affects deployment or recovery: JobManager (and its components), Checkpointing, Kubernetes/Yarn, ZooKeeper: (no)
- The S3 file system connector: (no)
Documentation
- Does this pull request introduce a new feature? (no)
CI report:
- 682a59db0c1587c46c9fe72fd0dd8e1283e51e8a Azure: SUCCESS
Bot commands
The @flinkbot bot supports the following commands:@flinkbot run azurere-run the last Azure build