Uploaded image for project: 'Phoenix'
  1. Phoenix
  2. PHOENIX-5806

Add a framework to assert relevant metric values between runs of each test

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 5.0.0, 4.15.0
    • None
    • None

    Description

      We should ensure that certain metrics are the expected value in between each test run. For example, each test should ensure resources (such as connections/statements) are closed after their use and can assert that the total Phoenix connection count is zero. 

      This Jira broadly aims at 2 things:

      1. Modifying existing tests so that we do not leak resources in the test itself
      2. Adding a common framework/interface, etc. which all "relevant" tests can inherit behavior to assert specific values for metrics and resource usage like query failure counts, open phoenix connection counts, etc. We can implement something similar as is aimed in PHOENIX-5296

      The idea is to use this Jira to brainstorm various ideas. This will also help uncover resource leaks/incorrect metric updates throughout the code base.

      Attachments

        Activity

          People

            Unassigned Unassigned
            ckulkarni Chinmay Kulkarni
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated: