-
Bug
-
Resolution: Done
-
Major
-
1.0.0.Alpha1
-
None
When a deployment which is being monitored by the agent is removed, exceptions are thrown when metrics are trying to be retrieved (both on monitored and monitor servers) and it seems the other deployments are not checked for (or at least reported), so the undeployed and [all?] other deployments are reported as "unknown".
Remote/Monitored Exception
18:42:23,541 ERROR [org.jboss.as.controller.management-operation] (management-handler-thread - 1) JBAS014613: Operation ("read-attribute") failed - address: ([ ("deployment" => "a.war"), ("subsystem" => "undertow") ]) - failure description: "JBAS014807: Management resource '[(\"deployment\" => \"a.war\")]' not found"
Hawkular/Monitor Machine Exception:
18:42:23,544 ERROR [org.hawkular.agent.monitor] (Hawkular-Monitor-Scheduler-Metrics-2) HAWKMONITOR010008: A metric collection failed: java.lang.RuntimeException: {"JBAS014653: Composite operation failed and was rolled back. Steps that failed:" => {"Operation step-4" => "JBAS014807: Management resource '[(\"deployment\" => \"a.war\")]' not found"}} at org.hawkular.agent.monitor.scheduler.polling.dmr.MetricDMRTaskGroupRunnable.run(MetricDMRTaskGroupRunnable.java:92) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [rt.jar:1.8.0_25] at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:308) [rt.jar:1.8.0_25] at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:180) [rt.jar:1.8.0_25] at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:294) [rt.jar:1.8.0_25] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) [rt.jar:1.8.0_25] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) [rt.jar:1.8.0_25] at java.lang.Thread.run(Thread.java:745) [rt.jar:1.8.0_25] at org.jboss.threads.JBossThread.run(JBossThread.java:122) [jboss-threads-2.1.1.Final.jar:2.1.1.Final]