LucaCanali opened a new pull request #29203:
URL: https://github.com/apache/spark/pull/29203


   ### What changes were proposed in this pull request?
   This removes the dependency between the config 
`spark.metrics.staticSources.enabled` and JVMSource registration.
   
   ### Why are the changes needed?
   The implementation of `spark.metrics.staticSources.enabled` in SPARK-32409 
introduces a bug: it has the side effect that when 
`spark.metrics.register.static.sources.enabled` is set to false, the 
registration of JVM Source is also ignored, even if requested with 
`spark.metrics.source.jvm.class=org.apache.spark.metrics.source.JvmSource` 
   
   ### Does this PR introduce _any_ user-facing change?
   This removes one unintended consequence/bug when using the config 
`spark.metrics.staticSources.enabled=false`
   
   ### How was this patch tested?
   Manually tested.


----------------------------------------------------------------
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.

For queries about this service, please contact Infrastructure at:
[email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to