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

Missing "live" element in JSON payload

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Not a Bug
    • Icon: Critical Critical
    • None
    • 27.0.0.Beta1
    • MP Health
    • None

      In wildfly-26 we used to have:

      /subsystem=microprofile-health-smallrye:check
      {
          "outcome" => "success",
          "result" => {
              "status" => "UP",
              "checks" => [
                  {"name" => "deployments-status",...},
                  {"name" => "server-state",...},
                  {"name" => "boot-errors",...},
                  {"name" => "ready-deployment.DefaultReadinessProcedureHealthTest.war","status" => "UP"},
                  {"name" => "started-deployment.DefaultReadinessProcedureHealthTest.war", "status" => "UP"},
                  {
                      "name" => "live",
                      "status" => "UP",
                      "data" => {"key" => "value"}
                  }
              ]
          }
      }
      

      In wildfly-27 we now have:

      /subsystem=microprofile-health-smallrye:check
      {
          "outcome" => "success",
          "result" => {
              "status" => "UP",
              "checks" => [
                  {"name" => "deployments-status", ...},
                  {"name" => "server-state", ...},
                  {"name" => "boot-errors", ...},
                  {"name" => "ready-deployment.DefaultReadinessProcedureHealthTest.war", "status" => "UP"},
                  {"name" => "started-deployment.DefaultReadinessProcedureHealthTest.war", "status" => "UP"}
              ]
          }
      }
      

      As you can see, the "name" => "live" element disappeared;

      The "live element" is also expected in the return value from endpoint http://localhost:9990/health/live which now returns:

      {"status":"UP","checks":[{"name":"empty-liveness-checks","status":"UP"}]}
      

              mstefank Martin Stefanko
              tborgato@redhat.com Tommaso Borgato
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: