Hadoop Common
  1. Hadoop Common
  2. HADOOP-7627

Improve MetricsAsserts to give more understandable output on failure

    Details

    • Type: Improvement Improvement
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 0.23.0
    • Fix Version/s: 0.23.0
    • Component/s: metrics, test
    • Labels:
      None
    • Hadoop Flags:
      Reviewed

      Description

      In developing a test case that uses MetricsAsserts, I had two issues:
      1) the error output in the case that an assertion failed does not currently give any information as to the actual value of the metric
      2) there is no way to retrieve the metric variable (eg to assert that the sum of a metric over all DNs is equal to some value)

      This JIRA is to improve this test class to fix the above issues.

        Activity

          People

          • Assignee:
            Todd Lipcon
            Reporter:
            Todd Lipcon
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development