-
Bug
-
Resolution: Fixed
-
Minor
-
None
If you hot load a plugin from the update center and this plugin has an extension point to HealthCheckProvider, the provided won't be loaded correctly and it will print this exception on the log:
May 22, 2017 10:42:28 AM jenkins.metrics.api.Metrics$HealthChecker$3 run SEVERE: Error running jenkins.metrics.api.Metrics$HealthChecker java.lang.UnsupportedOperationException at java.util.Collections$UnmodifiableCollection.add(Collections.java:1055) at jenkins.metrics.api.Metrics$HealthChecker.execute(Metrics.java:604) at jenkins.metrics.api.Metrics$HealthChecker.access$700(Metrics.java:408) at jenkins.metrics.api.Metrics$HealthChecker$3.run(Metrics.java:554) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at java.lang.Thread.run(Thread.java:745)
This is because in case the provider is not registered, the metrics plugin will try to register it by modifiying an unmodifiableSortedSet:
- links to