Commit 0d5ca17
committed
[FLINK-38704][metrics] Fix MetricConfig.getString() to handle numeric values
MetricConfig.getString() was using getProperty() which returns null for
numeric YAML values stored as Integer/Long/Boolean. Changed to use get()
and convert to String, matching the pattern of other getter methods.
This fixes metrics reporters not loading numeric configuration values.1 parent 8833af4 commit 0d5ca17
2 files changed
Lines changed: 13 additions & 2 deletions
File tree
- flink-metrics/flink-metrics-core/src
- main/java/org/apache/flink/metrics
- test/java/org/apache/flink/metrics
Lines changed: 5 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
37 | | - | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
38 | 42 | | |
39 | 43 | | |
40 | 44 | | |
| |||
Lines changed: 8 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
90 | 90 | | |
91 | 91 | | |
92 | 92 | | |
93 | | - | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
94 | 101 | | |
95 | 102 | | |
96 | 103 | | |
| |||
0 commit comments