Uploaded image for project: 'infrautils'
  1. infrautils
  2. INFRAUTILS-48

diagstatus JSON response should include a systemReadyStateErrorCause

XMLWordPrintable

      Looking over trozet's INFRAUTILS-47, I'm finding it would be very useful to have details in a GET /diagstatus/ in case of a "systemReadyState": "FAILURE" ... somewhat similar to jluhrsen's work in INFRAUTILS-31 where we added an errorCause for each service (if available), it would really make sense to have an additional field named e.g. systemReadyStateErrorCause (OK for everyone?) which tells us WHY we are in a failed system ready state - without having to dig through a karaf.log.

      This should be relatively easy to implement - SystemReadyMonitorMXBean should have not only an SystemState getSystemState() but also a Throwable getFailureCause() method, which SystemReadyImpl could provide, and DiagStatusServiceImpl could stick into the JSON (just like in INFRAUTILS-31).

      k.faseela you certainly would have no objections if I implemented this?

            vorburger Michael Vorburger
            vorburger Michael Vorburger
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: