Uploaded image for project: 'Apache Lens (Retired)'
  1. Apache Lens (Retired)
  2. LENS-417

Query metrics on prepare are not working

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: 2.1
    • Fix Version/s: 2.1
    • Component/s: api, driver-jdbc, server
    • Labels:
      None

      Description

      When query metrics are enabled on prepare query, seeing following issues :

      lens-shell>prepQuery explain cube select id,name from sample_dim
      Explain FAILED:A metric named lens.MethodMetricGauge.5a82d69f-8968-44f4-af08-cb4a6d65b12a-HiveDriver-org.apache.lens.driver.cube.RewriteUtil-rewriteQuery already exists
      

      The above happens because the driver config merge went wrong.
      Once it is fixed seeing the below :

      lens-shell>prepQuery  explain cube select id,name from sample_dim
      Command failed javax.ws.rs.InternalServerErrorException: HTTP 500 A metric named lens.MethodMetricGauge.3d83e617-68a4-4695-ac5e-801392b0b9bc-JDBCDriver-columnar-sql-rewrite already exists
      

      This happens because prepare happens once for validate and once for prepare.

        Attachments

        1. LENS-417.2.patch
          12 kB
          Amareshwari Sriramadasu

          Activity

            People

            • Assignee:
              amareshwari Amareshwari Sriramadasu
              Reporter:
              amareshwari Amareshwari Sriramadasu
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: