Uploaded image for project: 'Flink'
  1. Flink
  2. FLINK-23628

MeasurementInfoProviderTest.testNormalizingTags fails on Azure

    XMLWordPrintableJSON

    Details

    • Type: Technical Debt
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.12.6, 1.13.3
    • Fix Version/s: 1.12.6, 1.13.3
    • Component/s: Runtime / Metrics
    • Labels:
      None

      Description

      https://dev.azure.com/apache-flink/apache-flink/_build/results?buildId=21496&view=logs&j=d44f43ce-542c-597d-bf94-b0718c71e5e8&t=03dca39c-73e8-5aaf-601d-328ae5c35f20&l=15164

      [INFO] Running org.apache.flink.metrics.influxdb.InfluxdbReporterTest
      [ERROR] Tests run: 2, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.609 s <<< FAILURE! - in org.apache.flink.metrics.influxdb.MeasurementInfoProviderTest
      [ERROR] testNormalizingTags(org.apache.flink.metrics.influxdb.MeasurementInfoProviderTest)  Time elapsed: 0.008 s  <<< ERROR!
      java.lang.UnsupportedOperationException: unexpected method call
      	at org.apache.flink.metrics.influxdb.MeasurementInfoProviderTest.lambda$testNormalizingTags$1(MeasurementInfoProviderTest.java:79)
      	at org.mockito.internal.handler.MockHandlerImpl.handle(MockHandlerImpl.java:103)
      	at org.mockito.internal.handler.NullResultGuardian.handle(NullResultGuardian.java:29)
      	at org.mockito.internal.handler.InvocationNotifierHandler.handle(InvocationNotifierHandler.java:35)
      	at org.mockito.internal.creation.bytebuddy.MockMethodInterceptor.doIntercept(MockMethodInterceptor.java:63)
      	at org.mockito.internal.creation.bytebuddy.MockMethodInterceptor.doIntercept(MockMethodInterceptor.java:49)
      	at org.mockito.internal.creation.bytebuddy.MockMethodInterceptor$DispatcherDefaultingToRealMethod.interceptSuperCallable(MockMethodInterceptor.java:110)
      	at org.apache.flink.runtime.metrics.groups.FrontMetricGroup$MockitoMock$1748504994.getLogicalScope(Unknown Source)
      	at org.apache.flink.metrics.influxdb.MeasurementInfoProvider.getLogicalScope(MeasurementInfoProvider.java:70)
      	at org.apache.flink.metrics.influxdb.MeasurementInfoProvider.getScopedName(MeasurementInfoProvider.java:65)
      	at org.apache.flink.metrics.influxdb.MeasurementInfoProvider.getMetricInfo(MeasurementInfoProvider.java:49)
      	at org.apache.flink.metrics.influxdb.MeasurementInfoProviderTest.testNormalizingTags(MeasurementInfoProviderTest.java:83)
      	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      	at java.lang.reflect.Method.invoke(Method.java:498)
      	at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50)
      	at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
      	at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47)
      	at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
      	at org.junit.rules.TestWatcher$1.evaluate(TestWatcher.java:55)
      	at org.junit.rules.RunRules.evaluate(RunRules.java:20)
      	at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325)
      	at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78)
      	at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:57)
      	at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
      	at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
      	at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
      	at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
      	at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
      	at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
      	at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:365)
      	at org.apache.maven.surefire.junit4.JUnit4Provider.executeWithRerun(JUnit4Provider.java:273)
      	at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:238)
      	at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:159)
      	at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:384)
      	at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:345)
      	at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:126)
      	at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:418)
      
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                chesnay Chesnay Schepler
                Reporter:
                dwysakowicz Dawid Wysakowicz
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: