Uploaded image for project: 'WildFly'
  1. WildFly
  2. WFLY-17381

Metrics collection logs errors when resources are removed

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • None
    • None
    • MP Metrics
    • None
    • Workaround Exists
    • Hide

      A partial workaround is to add logging subsystem filter-spec to filter out the log noise; e.g. to filter out the exceptions related to the messaging-activemq subsystem that led to this bug report, this worked:

      /subsystem=logging/logger=org.jboss.as.controller.management-operation:add(filter-spec="any(not(match(\"WFLYCTL0013\")),not(match(\"\\\"messaging-activemq\\\"\")),not(match(\"\\\"runtime-queue\\\"\")),not(match(\"not found\")))",level=INFO,use-parent-handlers=true)

      Show
      A partial workaround is to add logging subsystem filter-spec to filter out the log noise; e.g. to filter out the exceptions related to the messaging-activemq subsystem that led to this bug report, this worked: /subsystem=logging/logger=org.jboss.as.controller.management-operation:add(filter-spec="any(not(match(\"WFLYCTL0013\")),not(match(\"\\\"messaging-activemq\\\"\")),not(match(\"\\\"runtime-queue\\\"\")),not(match(\"not found\")))",level=INFO,use-parent-handlers=true)
    • ---
    • ---

      Metrics collection scans the resource tree at boot to find metrics to track and then uses that data until reload or shutdown. But this data can fall out of date if resources are removed, leading to log errors as metric collection tries to read non-existent resources.

      Possible solutions:

      1) Error handling that doesn't result in logging, if possible. (If the logging is from the OperationContext this likely isn't feasible.)

      2) Adding management model listeners to track addition and removal of resources so the metrics registry can be kept current.

              jaslee@redhat.com Jason Lee
              bstansbe@redhat.com Brian Stansberry
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated: