Uploaded image for project: 'WildFly WIP'
  1. WildFly WIP
  2. WFWIP-352

All checks are returned if mp.health.disable-default-procedures=true in META-INF

    XMLWordPrintable

Details

    • Bug
    • Resolution: Not a Bug
    • Major
    • MP Health
    • None
    • Hide
      • Deploy applicaiton from attachment HealthDeprecatedTest.war, which has mp.health.disable-default-procedures=true configured in META-INF
      • check operation returns full list of checks
        [standalone@localhost:9990 /] /subsystem=microprofile-health-smallrye:check
        {
            "outcome" => "success",
            "result" => {
                "status" => "UP",
                "checks" => [
                    {
                        "name" => "deployments-status",
                        "status" => "UP",
                        "data" => {"_DEFAULT___DEFAULT__HealthDeprecatedTest.war" => "OK"}
                    },
                    {
                        "name" => "boot-errors",
                        "status" => "UP"
                    },
                    {
                        "name" => "server-state",
                        "status" => "UP",
                        "data" => {"value" => "running"}
                    },
                    {
                        "name" => "deprecated-health",
                        "status" => "UP",
                        "data" => {"key" => "value"}
                    }
                ]
            }
        }
        
      Show
      Deploy applicaiton from attachment HealthDeprecatedTest.war, which has mp.health.disable-default-procedures=true configured in META-INF check operation returns full list of checks [standalone@localhost:9990 /] /subsystem=microprofile-health-smallrye:check { "outcome" => "success" , "result" => { "status" => "UP" , "checks" => [ { "name" => "deployments-status" , "status" => "UP" , "data" => { "_DEFAULT___DEFAULT__HealthDeprecatedTest.war" => "OK" } }, { "name" => "boot-errors" , "status" => "UP" }, { "name" => "server-state" , "status" => "UP" , "data" => { "value" => "running" } }, { "name" => "deprecated-health" , "status" => "UP" , "data" => { "key" => "value" } } ] } }

    Description

      According to [0] I understand mp.health.disable-default-procedures=true should disable default checks added by RFE https://issues.redhat.com/browse/EAP7-1322.
      But we have tests where we configure this property and `boot-errors`, `server-state`, `deployments-status` are returned.

      When I set mp.health.disable-default-procedures=true globally by ./standalone.sh -Dmp.health.disable-default-procedures=true it works corectly. Problems seems mp.health.disable-default-procedures is configured through META-INF file in war file. Is this behaviour expected?

      [0] https://github.com/wildfly/wildfly/commit/f5bd3daebce865c3215a65454cc2f6dde9cca124#diff-e9dc6f6a10d4a14697912c8b0da71dd3R131
      [1] https://eap-qe-jenkins.rhev-ci-vms.eng.rdu2.redhat.com/job/eap-7.x-microprofile-testsuite/358/jdk=oracle-java-11,label_exp=RHEL7/testReport/org.jboss.eap.qe.microprofile.health/HealthDeprecatedTest/testDeprecatedHealthAnnotation/
      [2] https://github.com/jboss-eap-qe/eap-microprofile-test-suite/blob/058910f9674006f0cbd5210e3701a4cff2c88933/microprofile-health/src/test/java/org/jboss/eap/qe/microprofile/health/HealthDeprecatedTest.java

      Attachments

        Activity

          People

            jmesnil1@redhat.com Jeff Mesnil
            mchoma@redhat.com Martin Choma
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: