Github user jerryshao commented on the issue:
https://github.com/apache/spark/pull/18041
@LantaoJin I don't think you have to do trim for metrics conf coming from
`SparkConf`:
1. `SparkConf` already handles `trim` when reading from spark-defaults.conf
file.
2. If you deliberately add trailing WS from code like
[here](https://github.com/apache/spark/pull/18041/files#diff-95b5e3102194fb12cc31f0b98e8b70a7R165),
I think it's up to you to guarantee the correctness of such configuration.
For metrics conf reading from metrics property file, I think we could trim
the trailing whitespace when reading from property file.
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]