[ https://issues.apache.org/jira/browse/FLINK-19616?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17213878#comment-17213878 ]
Yun Gao commented on FLINK-19616: --------------------------------- The root cause should be that azure pipeline do not keep the modified time for the files in the artifact. Current the azure pipeline per-compile the project and upload it as an artifact, then each module downloads the artifact and run the corresponding test. After downloading, the protoc executable downloaded by maven would lost the execution permission, which causes the error. Previously we set the <checkStaleness> property for protobuf generation maven plugin so that it could skip re-generating the java files after downloading to avoid the error. However, since the modification time is not kept, it might cause messy sometimes. Therefore, we would like to explicitly touch the .proto files before touching the java files to avoid the re-generation. This should be the same method used to avoid re-compile the java to class. > Flink : Formats : Parquet compilation failure > --------------------------------------------- > > Key: FLINK-19616 > URL: https://issues.apache.org/jira/browse/FLINK-19616 > Project: Flink > Issue Type: Bug > Components: Build System, Formats (JSON, Avro, Parquet, ORC, > SequenceFile) > Affects Versions: 1.12.0 > Reporter: Piotr Nowojski > Assignee: Yun Gao > Priority: Major > Labels: pull-request-available, test-stability > > https://dev.azure.com/pnowojski/Flink/_build/results?buildId=175&view=logs&j=66592496-52df-56bb-d03e-37509e1d9d0f&t=ae0269db-6796-5583-2e5f-d84757d711aa > {noformat} > [WARNING] [PROTOC] Unable to invoke protoc, will retry 1 time(s) > org.codehaus.plexus.util.cli.CommandLineException: Error while executing > process. > at > org.codehaus.plexus.util.cli.Commandline.execute(Commandline.java:680) > at > org.codehaus.plexus.util.cli.CommandLineUtils.executeCommandLineAsCallable(CommandLineUtils.java:136) > at > org.codehaus.plexus.util.cli.CommandLineUtils.executeCommandLine(CommandLineUtils.java:106) > at > org.codehaus.plexus.util.cli.CommandLineUtils.executeCommandLine(CommandLineUtils.java:89) > at org.xolstice.maven.plugin.protobuf.Protoc.execute(Protoc.java:190) > at > org.xolstice.maven.plugin.protobuf.AbstractProtocMojo.execute(AbstractProtocMojo.java:529) > at > org.xolstice.maven.plugin.protobuf.AbstractProtocTestCompileMojo.execute(AbstractProtocTestCompileMojo.java:31) > at > org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:132) > at > org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:208) > at > org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153) > at > org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145) > at > org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:116) > at > org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:80) > at > org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:51) > at > org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:120) > at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:355) > at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:155) > at org.apache.maven.cli.MavenCli.execute(MavenCli.java:584) > at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:216) > at org.apache.maven.cli.MavenCli.main(MavenCli.java:160) > 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.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289) > at > org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229) > at > org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415) > at > org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356) > Caused by: java.io.IOException: Cannot run program > "/__w/1/s/flink-formats/flink-parquet/target/protoc-plugins/protoc-3.5.1-linux-x86_64.exe": > error=13, Permission denied > at java.lang.ProcessBuilder.start(ProcessBuilder.java:1048) > at java.lang.Runtime.exec(Runtime.java:621) > at > org.codehaus.plexus.util.cli.Commandline.execute(Commandline.java:660) > ... 27 more > Caused by: java.io.IOException: error=13, Permission denied > at java.lang.UNIXProcess.forkAndExec(Native Method) > at java.lang.UNIXProcess.<init>(UNIXProcess.java:247) > at java.lang.ProcessImpl.start(ProcessImpl.java:134) > at java.lang.ProcessBuilder.start(ProcessBuilder.java:1029) > {noformat} -- This message was sent by Atlassian Jira (v8.3.4#803005)