Uploaded image for project: 'JBoss Enterprise Application Platform'
  1. JBoss Enterprise Application Platform
  2. JBEAP-22366

MP Health property mp.health.default.readiness.empty.response is not respected

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Critical Critical
    • EAP-XP-4.0.0.CR1
    • EAP-XP-3.0.0.GA
    • MP Health
    • None
    • False
    • False
    • undefined
    • Not Yet Documented
    • Workaround Exists
    • Hide

      In some cases - Just not setting mp.health.disable-default-procedures=true will include the default empty readiness check that handles the server start correctly.

      Show
      In some cases - Just not setting mp.health.disable-default-procedures=true will include the default empty readiness check that handles the server start correctly.
    • Hide
      1. Add an application containing @Readiness health check to the server and configure empty-readiness-checks-status to DOWN
      2. In a separate process repeat the calls to :9990/health/ready
      3. Start the server and check the calls process (Connection refused -> DOWN -> health check result)
      4. Restart server with -Dmp.health.disable-default-procedures=true and check the calls process (Connection refused -> UP -> health check result)
      Show
      Add an application containing @Readiness health check to the server and configure empty-readiness-checks-status to DOWN In a separate process repeat the calls to :9990/health/ready Start the server and check the calls process (Connection refused -> DOWN -> health check result) Restart server with -Dmp.health.disable-default-procedures=true and check the calls process (Connection refused -> UP -> health check result)

      The MP Health spec uses mp.health.default.readiness.empty.response to define empty readiness response when the server is starting and the deployments are not yet processed so it won't respond up to /health/ready before the user readiness checks are processed. This is currently done through management model `empty-readiness-checks-status` attribute which adds and empty readiness health check with the correct status. However, when the user specifies also `mp.health.disable-default-procedures=true` this will remove the mentioned health check and the server responds UP before the user checks can be processed. 

              mstefank Martin Stefanko
              fburzigo Fabio Burzigotti
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: