Uploaded image for project: 'Hadoop Common'
  1. Hadoop Common
  2. HADOOP-7627

Improve MetricsAsserts to give more understandable output on failure

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 0.23.0
    • 0.23.0
    • metrics, test
    • None
    • 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.

      Attachments

        1. hadoop-7627.txt
          6 kB
          Todd Lipcon

        Activity

          People

            tlipcon Todd Lipcon
            tlipcon Todd Lipcon
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: