-
Bug
-
Resolution: Unresolved
-
Major
-
None
I have a job defined to run across approximately 60 build nodes concurrently. If any two of those jobs complete at exactly the same time, one build will fail during link creation, because the links aren't being created atomically:
ln builds/lastStableBuild /jk/jobs/install-system-files-slave/lastStable failed
java.nio.file.FileAlreadyExistsException: /jk/jobs/install-system-files-slave/lastStable
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.createSymbolicLink(UnixFileSystemProvider.java:456)
at java.nio.file.Files.createSymbolicLink(Files.java:996)
at sun.reflect.GeneratedMethodAccessor5497.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at hudson.Util.createSymlinkJava7(Util.java:1202)
at hudson.Util.createSymlink(Util.java:1118)
at hudson.model.Run.createSymlink(Run.java:1865)
at hudson.model.Run.updateSymlinks(Run.java:1847)
at hudson.model.Run.execute(Run.java:1757)
at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
at hudson.model.ResourceController.execute(ResourceController.java:89)
at hudson.model.Executor.run(Executor.java:240)
Building remotely on d-rg-mt-adm (pack) in workspace /jk/workspace/install-system-files-slave
- links to
We have a very large distributed Jenkins CI undertaking at the moment and our first few tests always fail due to this error.
TraderPlus.UI.Test #4641 completed : FAILURE
TraderPlus.UI.Test #4646 completed : FAILURE
Build TraderPlus.UI.Test #4655 started
Build TraderPlus.UI.Test #4654 started
TraderPlus.UI.Test #4645 completed : FAILURE
Build TraderPlus.UI.Test #4656 started
TraderPlus.UI.Test #4648 completed : FAILURE
Build TraderPlus.UI.Test #4657 started
TraderPlus.UI.Test #4639 completed : FAILURE
Build TraderPlus.UI.Test #4658 started
TraderPlus.UI.Test #4642 completed : FAILURE
Build TraderPlus.UI.Test #4659 started
TraderPlus.UI.Test #4647 completed
Build TraderPlus.UI.Test #4660 started
TraderPlus.UI.Test #4644 completed
Build TraderPlus.UI.Test #4661 started
(Rest of the tests pass)
Failure details:
ln builds\lastSuccessfulBuild C:\Users\Administrator\.jenkins\jobs\TraderPlus.UI.Test\lastSuccessful failed
java.nio.file.FileAlreadyExistsException: C:\Users\Administrator\.jenkins\jobs\TraderPlus.UI.Test\lastSuccessful
at sun.nio.fs.WindowsException.translateToIOException(Unknown Source)
at sun.nio.fs.WindowsException.rethrowAsIOException(Unknown Source)
at sun.nio.fs.WindowsException.rethrowAsIOException(Unknown Source)
at sun.nio.fs.WindowsFileSystemProvider.createSymbolicLink(Unknown Source)
at java.nio.file.Files.createSymbolicLink(Unknown Source)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at hudson.Util.createSymlinkJava7(Util.java:1227)
at hudson.Util.createSymlink(Util.java:1143)
at hudson.model.Run.createSymlink(Run.java:1848)
at hudson.model.Run.updateSymlinks(Run.java:1829)
at hudson.model.Run.execute(Run.java:1742)
at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
at hudson.model.ResourceController.execute(ResourceController.java:98)
at hudson.model.Executor.run(Executor.java:374)
[EnvInject] - Loading node environment variables.
Building remotely on au03-devcivm4 (UITest) in workspace D:\Jenkins\workspace\TraderPlus.UI.Test
Running Jenkins ver. 1.616