Uploaded image for project: 'Apache Arrow'
  1. Apache Arrow
  2. ARROW-15199

[Java] Update protobuf-maven-plugin to avoid "Text file busy" failure

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 7.0.0
    • Java

    Description

      Example:

      Error:  Failed to execute goal org.xolstice.maven.plugins:protobuf-maven-plugin:0.5.0:compile (test) on project flight-core: An error occurred while invoking protoc. Error while executing process. Cannot run program "/arrow/java/flight/flight-core/target/protoc-plugins/protoc-3.17.3-linux-x86_64.exe": error=26, Text file busy -> [Help 1]
      Error:  
      Error:  To see the full stack trace of the errors, re-run Maven with the -e switch.
      Error:  Re-run Maven using the -X switch to enable full debug logging.
      Error:  
      Error:  For more information about the errors and possible solutions, please read the following articles:
      Error:  [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
      Error:  
      Error:  After correcting the problems, you can resume the build with the command
      Error:    mvn <args> -rf :flight-core
      

      Appears to be due to a JDK bug: https://github.com/xolstice/protobuf-maven-plugin/issues/34

      A workaround was introduced in the 0.5.1 version of the Maven plugin we use but from the log above, we're on 0.5.0.

      Attachments

        Issue Links

          Activity

            People

              lidavidm David Li
              lidavidm David Li
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 2h
                  2h