Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8235522

Monitoring API should distinguish the cases when the metrics are unavailable vs error cases

    Details

    • Type: Bug
    • Status: Open
    • Priority: P4
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: 16
    • Component/s: core-svc
    • Labels:
      None

      Description

      This issue is filed to follow up the changes done in JDK-8226575 to thoroughly look at the cases when the metrics are unavailable and the cases when the failure happens while they have been obtaining.

      It's important to consider carefully if the monitoring API indicates an error vs unavailable and an application should continue to run when the monitoring system fails to get the metrics.

      There are several choices to report "something goes wrong" scenarios (should unlikely happen???):
      1. fall back to a random positive value (e.g. host value)
      2. return a negative value
      3. throw an exception

      #3 is not an option as the application is not expecting this. For #2, the application can filter bad values if desirable.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                dtitov Daniil Titov
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated: