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

Method metrics names duplicate for segmentation inner rewrite

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • None
    • cube
    • None

    Description

      java.lang.IllegalArgumentException: A metric named lens.MethodMetricGauge.9a18f287-a40f-4108-b499-932c3edf6eaa-hive/prod-org.apache.lens.cube.parse.ColumnResolver-ITER-0 already exists
      	at com.codahale.metrics.MetricRegistry.register(MetricRegistry.java:91) ~[metrics-core-3.0.2.jar:3.0.2]
      	at org.apache.lens.server.api.metrics.MethodMetricGauge.markSuccess(MethodMetricGauge.java:61) ~[lens-server-api-2.7.0-SNAPSHOT.jar:2.7.0-SNAPSHOT]
      	at org.apache.lens.cube.parse.CubeQueryRewriter.rewrite(CubeQueryRewriter.java:264) ~[lens-cube-2.7.0-SNAPSHOT.jar:2.7.0-SNAPSHOT]
      	at org.apache.lens.cube.parse.CubeQueryRewriter.rewrite(CubeQueryRewriter.java:232) ~[lens-cube-2.7.0-SNAPSHOT.jar:2.7.0-SNAPSHOT]
      	at org.apache.lens.cube.parse.SegmentationCandidate.rewriteInternal(SegmentationCandidate.java:145) ~[lens-cube-2.7.0-SNAPSHOT.jar:2.7.0-SNAPSHOT]
      	at org.apache.lens.cube.parse.SegmentationInnerRewriter$Exploder.shouldBeRemoved(SegmentationInnerRewriter.java:57) ~[lens-cube-2.7.0-SNAPSHOT.jar:2.7.0-SNAPSHOT]
      	at org.apache.lens.cube.parse.SegmentationInnerRewriter$Exploder.access$300(SegmentationInnerRewriter.java:49) ~[lens-cube-2.7.0-SNAPSHOT.jar:2.7.0-SNAPSHOT]
      	at org.apache.lens.cube.parse.SegmentationInnerRewriter.lambda$rewriteContext$0(SegmentationInnerRewriter.java:46) ~[lens-cube-2.7.0-SNAPSHOT.jar:2.7.0-SNAPSHOT]
      	at org.apache.lens.cube.parse.SegmentationInnerRewriter$$Lambda$82/1668365591.test(Unknown Source) ~[na:na]
      	at java.util.Collection.removeIf(Collection.java:414) ~[na:1.8.0_40]
      	at org.apache.lens.cube.parse.SegmentationInnerRewriter.rewriteContext(SegmentationInnerRewriter.java:46) ~[lens-cube-2.7.0-SNAPSHOT.jar:2.7.0-SNAPSHOT]
      	at org.apache.lens.cube.parse.CubeQueryRewriter.rewrite(CubeQueryRewriter.java:263) ~[lens-cube-2.7.0-SNAPSHOT.jar:2.7.0-SNAPSHOT]
      	at org.apache.lens.cube.parse.CubeQueryRewriter.rewrite(CubeQueryRewriter.java:232) ~[lens-cube-2.7.0-SNAPSHOT.jar:2.7.0-SNAPSHOT]
      	at org.apache.lens.cube.parse.CubeQueryRewriter.rewrite(CubeQueryRewriter.java:248) ~[lens-cube-2.7.0-SNAPSHOT.jar:2.7.0-SNAPSHOT]
      	at org.apache.lens.server.rewrite.RewriteUtil$DriverRewriterRunnable.run(RewriteUtil.java:392) ~[classes/:na]
      	at org.apache.lens.server.query.QueryExecutionServiceImpl$RewriteEstimateRunnable.run(QueryExecutionServiceImpl.java:1855) [classes/:na]
      	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [na:1.8.0_40]
      	at java.util.concurrent.FutureTask.run(FutureTask.java:266) [na:1.8.0_40]
      	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) [na:1.8.0_40]
      	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) [na:1.8.0_40]
      	at java.lang.Thread.run(Thread.java:745) [na:1.8.0_40]
      
      

      Attachments

        1. LENS-1453.01.patch
          2 kB
          Rajat Khandelwal

        Activity

          People

            prongs Rajat Khandelwal
            prongs Rajat Khandelwal
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment