jackylee-ch opened a new pull request #35898: URL: https://github.com/apache/spark/pull/35898
### Why are the changes needed? We meet a kubernetes integration test failed when updating log4j2 from 2.17.1 to 2.17.2. The failed tests: `Verify logging configuration is picked from the provided SPARK_CONF_DIR/log4j2.properties` in `KubernetesSuite`. The failed message: `" did not contain "at URI /opt/spark/conf/log4j2.properties" The application did not complete, driver log did not contain str at URI /opt/spark/conf/log4j2.properties. (KubernetesSuite.scala:485)` The failed reason: this is the [patch](https://github.com/apache/logging-log4j2/commit/0f3510ab5f2371705b2f5cf52e9807fb5804052a#diff-ab4255c11b7414e8167314c787cb3ac7925e30bf212d5c1dd8bf06c93f9717aeR81) that changed the way to load log4j2.properties. After this patch, ConfigurationSource loads the actual log4j2.properties instead of the soft link. Thus we got `at URI /opt/spark/conf/..2022_03_17_04_21_55.822844723/log4j2.properties` in logs, not `at URI /opt/spark/conf/log4j2.properties`. ### Does this PR introduce _any_ user-facing change? No ### How was this patch tested? Origin Test and test with log4j2 2.17.2. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
