Commit dc4dea9
committed
[SPARK-57943] MetricsSystem should not expose sink property values
### What changes were proposed in this pull request?
This PR aims to prevent metrics sink properties from being logged in `MetricsSystem`.
- `registerSinks()` logs only the sink names instead of the entire `sinkPropertiesMap`.
- The error log on sink creation failure reports only the sink class name, not the properties.
### Why are the changes needed?
Sink properties can contain sensitive values such as credentials, which should not be leaked into operator logs.
### Does this PR introduce _any_ user-facing change?
No, except the log messages.
### How was this patch tested?
Pass the CIs.
### Was this patch authored or co-authored using generative AI tooling?
Generated-by: Claude Fable 5
Closes #745 from dongjoon-hyun/SPARK-57943.
Authored-by: Dongjoon Hyun <dongjoon@apache.org>
Signed-off-by: Dongjoon Hyun <dongjoon@apache.org>1 parent 73097e3 commit dc4dea9
1 file changed
Lines changed: 2 additions & 7 deletions
Lines changed: 2 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
110 | 110 | | |
111 | 111 | | |
112 | 112 | | |
113 | | - | |
| 113 | + | |
114 | 114 | | |
115 | 115 | | |
116 | 116 | | |
| |||
130 | 130 | | |
131 | 131 | | |
132 | 132 | | |
133 | | - | |
134 | | - | |
135 | | - | |
136 | | - | |
137 | | - | |
138 | | - | |
| 133 | + | |
139 | 134 | | |
140 | 135 | | |
141 | 136 | | |
| |||
0 commit comments