Uploaded image for project: 'Hawkular'
  1. Hawkular
  2. HAWKULAR-340

WF Agent fails to proceed when one of the deployments is removed

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • 1.0.0.Alpha2
    • 1.0.0.Alpha1
    • Agent
    • None
    • Hide
      1. Monitor a remote server (eg: stock WF with 2 successful deployments, a.war and b.war);
      2. Check that availability for a.war and b.war reports "up";
      3. Undeploy one of the deployments (deleting the .war, or deleting the .deployed marker file);
      4. Check that both are returning "unknown" as availability (and exceptions are shown)
      Show
      Monitor a remote server (eg: stock WF with 2 successful deployments, a.war and b.war); Check that availability for a.war and b.war reports "up"; Undeploy one of the deployments (deleting the .war, or deleting the .deployed marker file); Check that both are returning "unknown" as availability (and exceptions are shown)

    Description

      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]
      

      Attachments

        1. a.war
          9 kB
        2. b.war
          7 kB

        Activity

          People

            jmazzitelli John Mazzitelli
            alexandrem_jira Alexandre Mendonça (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: