Uploaded image for project: 'IMPALA'
  1. IMPALA
  2. IMPALA-8249

End-to-end test framework doesn't read aggregated counters properly

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: Impala 3.2.0
    • Component/s: None
    • Labels:
      None
    • Epic Color:
      ghx-label-2

      Description

      The test framework doesn't always read the correct value of counters from the runtime profile. In the .test files we can have a RUNTIME_PROFILE section where we can test our expectations against runtime profile data. We can even calculate aggregates of runtime data, currently only SUM is supported over integer data, e.g.:

      ---- RUNTIME_PROFILE
      aggregation(SUM, RowsReturned): 2142543
      

       However, the counters are pretty-printed in the runtime profile, which means that if they are greater than 1000, a shortened version is printed first, then the accurate number comes in parenthesis , e.g.:

      RowsReturned: 2.14M (2142543)

       When the test framework parses the value of an aggregated counter, it wrongly tries to parse the short version as a number, which returns a wrong value (2 instead of 2142543 in the example).

        Attachments

          Activity

            People

            • Assignee:
              boroknagyz Zoltán Borók-Nagy
              Reporter:
              boroknagyz Zoltán Borók-Nagy
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: