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

org.apache.flink.connector.file.src.reader.TextLineInputFormat.createReader failed due to violate ApiAnnotationRules

    XMLWordPrintableJSON

Details

    Description

      021-12-02T21:44:11.4722598Z Dec 02 21:44:11 [ERROR] Tests run: 4, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 38.799 s <<< FAILURE! - in org.apache.flink.architecture.rules.ApiAnnotationRules
      2021-12-02T21:44:11.4724167Z Dec 02 21:44:11 [ERROR] ApiAnnotationRules.PUBLIC_EVOLVING_API_METHODS_USE_ONLY_PUBLIC_EVOLVING_API_TYPES  Time elapsed: 0.231 s  <<< FAILURE!
      2021-12-02T21:44:11.4725222Z Dec 02 21:44:11 java.lang.AssertionError: 
      2021-12-02T21:44:11.4726849Z Dec 02 21:44:11 Architecture Violation [Priority: MEDIUM] - Rule 'Return and argument types of methods annotated with @PublicEvolving must be annotated with @Public(Evolving).' was violated (2 times):
      2021-12-02T21:44:11.4730100Z Dec 02 21:44:11 org.apache.flink.connector.file.src.reader.TextLineInputFormat.createReader(org.apache.flink.configuration.Configuration, org.apache.flink.core.fs.FSDataInputStream): Returned leaf type org.apache.flink.connector.file.src.reader.StreamFormat$Reader does not satisfy: reside outside of package 'org.apache.flink..' or annotated with @Public or annotated with @PublicEvolving or annotated with @Deprecated
      2021-12-02T21:44:11.4734006Z Dec 02 21:44:11 org.apache.flink.connector.file.src.reader.TextLineInputFormat.createReader(org.apache.flink.configuration.Configuration, org.apache.flink.core.fs.FSDataInputStream): Returned leaf type org.apache.flink.connector.file.src.reader.TextLineInputFormat$Reader does not satisfy: reside outside of package 'org.apache.flink..' or annotated with @Public or annotated with @PublicEvolving or annotated with @Deprecated
      2021-12-02T21:44:11.4736377Z Dec 02 21:44:11 	at com.tngtech.archunit.lang.ArchRule$Assertions.assertNoViolation(ArchRule.java:94)
      2021-12-02T21:44:11.4737400Z Dec 02 21:44:11 	at com.tngtech.archunit.lang.ArchRule$Assertions.check(ArchRule.java:82)
      2021-12-02T21:44:11.4738529Z Dec 02 21:44:11 	at com.tngtech.archunit.library.freeze.FreezingArchRule.check(FreezingArchRule.java:96)
      2021-12-02T21:44:11.4739712Z Dec 02 21:44:11 	at com.tngtech.archunit.junit.ArchUnitTestDescriptor$ArchUnitRuleDescriptor.execute(ArchUnitTestDescriptor.java:159)
      2021-12-02T21:44:11.4740983Z Dec 02 21:44:11 	at com.tngtech.archunit.junit.ArchUnitTestDescriptor$ArchUnitRuleDescriptor.execute(ArchUnitTestDescriptor.java:142)
      2021-12-02T21:44:11.4742309Z Dec 02 21:44:11 	at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$6(NodeTestTask.java:151)
      2021-12-02T21:44:11.4743532Z Dec 02 21:44:11 	at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73)
      2021-12-02T21:44:11.4744736Z Dec 02 21:44:11 	at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$8(NodeTestTask.java:141)
      2021-12-02T21:44:11.4745846Z Dec 02 21:44:11 	at org.junit.platform.engine.support.hierarchical.Node.around(Node.java:137)
      2021-12-02T21:44:11.4747137Z Dec 02 21:44:11 	at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$9(NodeTestTask.java:139)
      2021-12-02T21:44:11.4748480Z Dec 02 21:44:11 	at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73)
      2021-12-02T21:44:11.4749659Z Dec 02 21:44:11 	at org.junit.platform.engine.support.hierarchical.NodeTestTask.executeRecursively(NodeTestTask.java:138)
      2021-12-02T21:44:11.4750777Z Dec 02 21:44:11 	at org.junit.platform.engine.support.hierarchical.NodeTestTask.execute(NodeTestTask.java:95)
      2021-12-02T21:44:11.4751822Z Dec 02 21:44:11 	at java.util.ArrayList.forEach(ArrayList.java:1259)
      2021-12-02T21:44:11.4752983Z Dec 02 21:44:11 	at org.junit.platform.engine.support.hierarchical.SameThreadHierarchicalTestExecutorService.invokeAll(SameThreadHierarchicalTestExecutorService.java:41)
      2021-12-02T21:44:11.4754345Z Dec 02 21:44:11 	at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$6(NodeTestTask.java:155)
      2021-12-02T21:44:11.4755550Z Dec 02 21:44:11 	at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73)
      2021-12-02T21:44:11.4756753Z Dec 02 21:44:11 	at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$8(NodeTestTask.java:141)
      2021-12-02T21:44:11.4757869Z Dec 02 21:44:11 	at org.junit.platform.engine.support.hierarchical.Node.around(Node.java:137)
      2021-12-02T21:44:11.4759122Z Dec 02 21:44:11 	at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$9(NodeTestTask.java:139)
      2021-12-02T21:44:11.4760323Z Dec 02 21:44:11 	at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73)
      2021-12-02T21:44:11.4761553Z Dec 02 21:44:11 	at org.junit.platform.engine.support.hierarchical.NodeTestTask.executeRecursively(NodeTestTask.java:138)
      2021-12-02T21:44:11.4762666Z Dec 02 21:44:11 	at org.junit.platform.engine.support.hierarchical.NodeTestTask.execute(NodeTestTask.java:95)
      2021-12-02T21:44:11.4763654Z Dec 02 21:44:11 	at java.util.ArrayList.forEach(ArrayList.java:1259)
      2021-12-02T21:44:11.4764819Z Dec 02 21:44:11 	at org.junit.platform.engine.support.hierarchical.SameThreadHierarchicalTestExecutorService.invokeAll(SameThreadHierarchicalTestExecutorService.java:41)
      2021-12-02T21:44:11.4766132Z Dec 02 21:44:11 	at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$6(NodeTestTask.java:155)
      2021-12-02T21:44:11.4767336Z Dec 02 21:44:11 	at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73)
      2021-12-02T21:44:11.4768776Z Dec 02 21:44:11 	at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$8(NodeTestTask.java:141)
      2021-12-02T21:44:11.4769897Z Dec 02 21:44:11 	at org.junit.platform.engine.support.hierarchical.Node.around(Node.java:137)
      2021-12-02T21:44:11.4771005Z Dec 02 21:44:11 	at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$9(NodeTestTask.java:139)
      2021-12-02T21:44:11.4772295Z Dec 02 21:44:11 	at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73)
      2021-12-02T21:44:11.4773468Z Dec 02 21:44:11 	at org.junit.platform.engine.support.hierarchical.NodeTestTask.executeRecursively(NodeTestTask.java:138)
      2021-12-02T21:44:11.4774587Z Dec 02 21:44:11 	at org.junit.platform.engine.support.hierarchical.NodeTestTask.execute(NodeTestTask.java:95)
      2021-12-02T21:44:11.4775723Z Dec 02 21:44:11 	at java.util.ArrayList.forEach(ArrayList.java:1259)
      2021-12-02T21:44:11.4776915Z Dec 02 21:44:11 	at org.junit.platform.engine.support.hierarchical.SameThreadHierarchicalTestExecutorService.invokeAll(SameThreadHierarchicalTestExecutorService.java:41)
      2021-12-02T21:44:11.4778368Z Dec 02 21:44:11 	at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$6(NodeTestTask.java:155)
      2021-12-02T21:44:11.4779579Z Dec 02 21:44:11 	at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73)
      2021-12-02T21:44:11.4780914Z Dec 02 21:44:11 	at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$8(NodeTestTask.java:141)
      2021-12-02T21:44:11.4782092Z Dec 02 21:44:11 	at org.junit.platform.engine.support.hierarchical.Node.around(Node.java:137)
      2021-12-02T21:44:11.4783212Z Dec 02 21:44:11 	at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$9(NodeTestTask.java:139)
      2021-12-02T21:44:11.4784423Z Dec 02 21:44:11 	at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73)
      2021-12-02T21:44:11.4785576Z Dec 02 21:44:11 	at org.junit.platform.engine.support.hierarchical.NodeTestTask.executeRecursively(NodeTestTask.java:138)
      2021-12-02T21:44:11.4786709Z Dec 02 21:44:11 	at org.junit.platform.engine.support.hierarchical.NodeTestTask.execute(NodeTestTask.java:95)
      2021-12-02T21:44:11.4787992Z Dec 02 21:44:11 	at org.junit.platform.engine.support.hierarchical.SameThreadHierarchicalTestExecutorService.submit(SameThreadHierarchicalTestExecutorService.java:35)
      2021-12-02T21:44:11.4789458Z Dec 02 21:44:11 	at org.junit.platform.engine.support.hierarchical.HierarchicalTestExecutor.execute(HierarchicalTestExecutor.java:57)
      2021-12-02T21:44:11.4790723Z Dec 02 21:44:11 	at org.junit.platform.engine.support.hierarchical.HierarchicalTestEngine.execute(HierarchicalTestEngine.java:54)
      2021-12-02T21:44:11.4792006Z Dec 02 21:44:11 	at org.junit.platform.launcher.core.EngineExecutionOrchestrator.execute(EngineExecutionOrchestrator.java:107)
      2021-12-02T21:44:11.4793228Z Dec 02 21:44:11 	at org.junit.platform.launcher.core.EngineExecutionOrchestrator.execute(EngineExecutionOrchestrator.java:88)
      2021-12-02T21:44:11.4794454Z Dec 02 21:44:11 	at org.junit.platform.launcher.core.EngineExecutionOrchestrator.lambda$execute$0(EngineExecutionOrchestrator.java:54)
      2021-12-02T21:44:11.4795736Z Dec 02 21:44:11 	at org.junit.platform.launcher.core.EngineExecutionOrchestrator.withInterceptedStreams(EngineExecutionOrchestrator.java:67)
      2021-12-02T21:44:11.4796973Z Dec 02 21:44:11 	at org.junit.platform.launcher.core.EngineExecutionOrchestrator.execute(EngineExecutionOrchestrator.java:52)
      2021-12-02T21:44:11.4798172Z Dec 02 21:44:11 	at org.junit.platform.launcher.core.DefaultLauncher.execute(DefaultLauncher.java:114)
      2021-12-02T21:44:11.4799229Z Dec 02 21:44:11 	at org.junit.platform.launcher.core.DefaultLauncher.execute(DefaultLauncher.java:86)
      2021-12-02T21:44:11.4800377Z Dec 02 21:44:11 	at org.junit.platform.launcher.core.DefaultLauncherSession$DelegatingLauncher.execute(DefaultLauncherSession.java:86)
      2021-12-02T21:44:11.4801782Z Dec 02 21:44:11 	at org.junit.platform.launcher.core.SessionPerRequestLauncher.execute(SessionPerRequestLauncher.java:53)
      2021-12-02T21:44:11.4802991Z Dec 02 21:44:11 	at org.apache.maven.surefire.junitplatform.JUnitPlatformProvider.lambda$execute$1(JUnitPlatformProvider.java:199)
      2021-12-02T21:44:11.4804190Z Dec 02 21:44:11 	at java.util.Iterator.forEachRemaining(Iterator.java:116)
      2021-12-02T21:44:11.4805225Z Dec 02 21:44:11 	at org.apache.maven.surefire.junitplatform.JUnitPlatformProvider.execute(JUnitPlatformProvider.java:193)
      2021-12-02T21:44:11.4806424Z Dec 02 21:44:11 	at org.apache.maven.surefire.junitplatform.JUnitPlatformProvider.invokeAllTests(JUnitPlatformProvider.java:154)
      2021-12-02T21:44:11.4807600Z Dec 02 21:44:11 	at org.apache.maven.surefire.junitplatform.JUnitPlatformProvider.invoke(JUnitPlatformProvider.java:120)
      2021-12-02T21:44:11.4808837Z Dec 02 21:44:11 	at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:428)
      2021-12-02T21:44:11.4809891Z Dec 02 21:44:11 	at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:162)
      2021-12-02T21:44:11.4810888Z Dec 02 21:44:11 	at org.apache.maven.surefire.booter.ForkedBooter.run(ForkedBooter.java:562)
      2021-12-02T21:44:11.4811954Z Dec 02 21:44:11 	at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:548)
      2021-12-02T21:44:11.4812823Z Dec 02 21:44:11 
      2021-12-02T21:44:11.4813481Z Dec 02 21:44:11 [INFO] Running org.apache.flink.architecture.rules.TableApiRules
      2021-12-02T21:44:11.5590569Z Dec 02 21:44:11 [INFO] Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.082 s - in org.apache.flink.architecture.rules.TableApiRules
      2021-12-02T21:44:11.5634655Z Dec 02 21:44:11 [INFO] Tests run: 0, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 38.904 s - in org.apache.flink.architecture.ArchitectureTest
      2021-12-02T21:44:12.2063747Z Dec 02 21:44:12 [INFO] 
      2021-12-02T21:44:12.2064224Z Dec 02 21:44:12 [INFO] Results:
      2021-12-02T21:44:12.2064637Z Dec 02 21:44:12 [INFO] 
      2021-12-02T21:44:12.2064987Z Dec 02 21:44:12 [ERROR] Failures: 
      2021-12-02T21:44:12.2066745Z Dec 02 21:44:12 [ERROR]   Architecture Violation [Priority: MEDIUM] - Rule 'Return and argument types of methods annotated with @PublicEvolving must be annotated with @Public(Evolving).' was violated (2 times): 

      https://dev.azure.com/apache-flink/apache-flink/_build/results?buildId=27474&view=logs&j=5c8e7682-d68f-54d1-16a2-a09310218a49&t=86f654fa-ab48-5c1a-25f4-7e7f6afb9bba&l=10301

      Attachments

        Issue Links

          Activity

            People

              gaoyunhaii Yun Gao
              gaoyunhaii Yun Gao
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: