Uploaded image for project: 'Maven'
  1. Maven
  2. MNG-7705

Sporadic failures on multiple builds sharing the same local repo when writing the .lastUpdated file

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 3.9.0
    • 3.9.4
    • None
    • None

    Description

      On a CI server, we have multiple builds running on the same host and sharing the same repo.
      While testing 3.9.0, I started to see a NIO exception for the .lastUpdated file. This has worked fine for years, all the way up to 3.8.7.

      If you re-run the build, it will work. I think that it's just a collision between the different processes.

      example command
      mvn --batch-mode dependency:sources dependency:resolve -Dclassifier=javadoc
      # this uses dependency:3.5.0:sources
      
      stracktrace
      [WARNING] Failed to write tracking file '/home/bamboo/.m2/repository/io/smallrye/config/smallrye-config/2.3.0/smallrye-config-2.3.0-javadoc.jar.lastUpdated'
          java.nio.file.NoSuchFileException: /home/bamboo/.m2/repository/io/smallrye/config/smallrye-config/2.3.0/smallrye-config-2.3.0-javadoc.jar.lastUpdated
              at sun.nio.fs.UnixException.translateToIOException (UnixException.java:86)
              at sun.nio.fs.UnixException.rethrowAsIOException (UnixException.java:102)
              at sun.nio.fs.UnixException.rethrowAsIOException (UnixException.java:107)
              at sun.nio.fs.UnixFileSystemProvider.newByteChannel (UnixFileSystemProvider.java:214)
              at java.nio.file.Files.newByteChannel (Files.java:361)
              at java.nio.file.Files.newByteChannel (Files.java:407)
              at java.nio.file.spi.FileSystemProvider.newInputStream (FileSystemProvider.java:384)
              at java.nio.file.Files.newInputStream (Files.java:152)
              at org.eclipse.aether.internal.impl.DefaultTrackingFileManager.update (DefaultTrackingFileManager.java:90)
              at org.eclipse.aether.internal.impl.DefaultUpdateCheckManager.write (DefaultUpdateCheckManager.java:604)
              at org.eclipse.aether.internal.impl.DefaultUpdateCheckManager.touchArtifact (DefaultUpdateCheckManager.java:539)
              at org.eclipse.aether.internal.impl.DefaultArtifactResolver.evaluateDownloads (DefaultArtifactResolver.java:701)
              at org.eclipse.aether.internal.impl.DefaultArtifactResolver.performDownloads (DefaultArtifactResolver.java:592)
              at org.eclipse.aether.internal.impl.DefaultArtifactResolver.resolve (DefaultArtifactResolver.java:478)
              at org.eclipse.aether.internal.impl.DefaultArtifactResolver.resolveArtifacts (DefaultArtifactResolver.java:278)
              at org.eclipse.aether.internal.impl.DefaultArtifactResolver.resolveArtifact (DefaultArtifactResolver.java:255)
              at org.eclipse.aether.internal.impl.DefaultRepositorySystem.resolveArtifact (DefaultRepositorySystem.java:296)
              at org.apache.maven.shared.transfer.artifact.resolve.internal.Maven31ArtifactResolver.resolveArtifact (Maven31ArtifactResolver.java:97)
              at org.apache.maven.shared.transfer.artifact.resolve.internal.Maven31ArtifactResolver.resolveArtifact (Maven31ArtifactResolver.java:78)
              at org.apache.maven.shared.transfer.artifact.resolve.internal.DefaultArtifactResolver.resolveArtifact (DefaultArtifactResolver.java:70)
              at org.apache.maven.plugins.dependency.fromDependencies.AbstractDependencyFilterMojo.resolve (AbstractDependencyFilterMojo.java:464)
              at org.apache.maven.plugins.dependency.fromDependencies.AbstractDependencyFilterMojo.getClassifierTranslatedDependencies (AbstractDependencyFilterMojo.java:408)
              at org.apache.maven.plugins.dependency.fromDependencies.AbstractDependencyFilterMojo.getDependencySets (AbstractDependencyFilterMojo.java:340)
              at org.apache.maven.plugins.dependency.resolvers.ResolveDependenciesMojo.doExecute (ResolveDependenciesMojo.java:103)
              at org.apache.maven.plugins.dependency.resolvers.ResolveDependencySourcesMojo.doExecute (ResolveDependencySourcesMojo.java:52)
              at org.apache.maven.plugins.dependency.AbstractDependencyMojo.execute (AbstractDependencyMojo.java:159)
              at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo (DefaultBuildPluginManager.java:126)
              at org.apache.maven.lifecycle.internal.MojoExecutor.doExecute2 (MojoExecutor.java:342)
              at org.apache.maven.lifecycle.internal.MojoExecutor.doExecute (MojoExecutor.java:330)
              at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:213)
              at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:175)
              at org.apache.maven.lifecycle.internal.MojoExecutor.access$000 (MojoExecutor.java:76)
              at org.apache.maven.lifecycle.internal.MojoExecutor$1.run (MojoExecutor.java:163)
              at org.apache.maven.plugin.DefaultMojosExecutionStrategy.execute (DefaultMojosExecutionStrategy.java:39)
              at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:160)
              at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:105)
              at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:73)
              at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:53)
              at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:118)
              at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:260)
              at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:172)
              at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:100)
              at org.apache.maven.cli.MavenCli.execute (MavenCli.java:821)
              at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:270)
              at org.apache.maven.cli.MavenCli.main (MavenCli.java:192)
              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:282)
              at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:225)
              at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:406)
              at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:347)
      

      Attachments

        1. 2023-02-28_failure.zip
          410 kB
          Jim Sellers
        2. apache-maven-3.9.1-SNAPSHOT-bin.tar-1.gz
          8.61 MB
          Michael Osipov
        3. failed_plan-377290782-JOB1-15.zip
          3.92 MB
          Jim Sellers
        4. maven-resolver-util-1.9.6-SNAPSHOT.jar
          184 kB
          Michael Osipov
        5. MNG-7705_strace_2023-02-27.zip
          7.90 MB
          Jim Sellers
        6. MNG-7705.zip
          182 kB
          Jim Sellers
        7. MNG-7705-2023-02-27.zip
          67 kB
          Jim Sellers
        8. MNG-7705-2023-03-07.zip
          23 kB
          Jim Sellers
        9. xaa-1.xz
          23.08 MB
          Jim Sellers
        10. xab-1.xz
          23.05 MB
          Jim Sellers
        11. xac-1.xz
          23.09 MB
          Jim Sellers
        12. xad-1.xz
          27.42 MB
          Jim Sellers

        Issue Links

          Activity

            People

              cstamas Tamas Cservenak
              sellersj Jim Sellers
              Votes:
              1 Vote for this issue
              Watchers:
              9 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: