Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-67230

Timestamper Plugin not thread-safe? Logs with WARNINGs

XMLWordPrintable

      Our logs fill up with these Timestamper warnings during a build...

      24-Nov-2021 09:03:04.089 WARNING Executor #1 for myhost : executing app-23.x-generate-release #5 hudson.plugins.timestamper.TimestamperBuildWrapper$ConsoleLogFilterImpl.decorateLogger /home/build/jenkins/jobs/app-23.x-generate-release/builds/5/timestamper/timestamps
      java.nio.file.FileAlreadyExistsException: /home/build/jenkins/jobs/app-23.x-generate-release/builds/5/timestamper/timestamps
      at sun.nio.fs.UnixException.translateToIOException(UnixException.java:88)
      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.createFile(Files.java:632)
      at hudson.plugins.timestamper.io.TimestampsWriter.<init>(TimestampsWriter.java:80)
      at hudson.plugins.timestamper.TimestamperBuildWrapper$ConsoleLogFilterImpl.decorateLogger(TimestamperBuildWrapper.java:114)
      at hudson.console.ConsoleLogFilter.decorateLogger(ConsoleLogFilter.java:69)
      at jenkins.tasks.SimpleBuildWrapper.decorateLogger(SimpleBuildWrapper.java:341)
      at hudson.maven.MavenBuild$ProxyImpl2.<init>(MavenBuild.java:628)
      at hudson.maven.MavenModuleSetBuild$MavenModuleSetBuildExecution.doRun(MavenModuleSetBuild.java:731)
      at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:520)
      at hudson.model.Run.execute(Run.java:1888)
      at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:543)
      at hudson.model.ResourceController.execute(ResourceController.java:99)
      at hudson.model.Executor.run(Executor.java:432)

      I'm just guessing at what could cause this, but is it might be that Timestamper isn't thread-safe and is having issue with the fact that we are running Maven parallel builds by setting the Maven property -T 1C (one thread per CPU).   

            Unassigned Unassigned
            danshome Dan McLaughlin
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: