hop icon indicating copy to clipboard operation
hop copied to clipboard

[Bug]: Issue with tests in hop-plugins-misc-git on Windows

Open nadment opened this issue 8 months ago • 0 comments

Apache Hop version?

2.10.0-SNAPSHOT

Java version?

Java 17

Operating system

Windows

What happened?

This problem in UIGitTest.testPush() seems to exist under Windows.

java.io.IOException: Could not delete file C:\Users\Nico\AppData\Local\Temp\jgit_testPush_10298860150716985621_tmp\tmp_6601173994848530209.git\objects\pack\pack-31d7bccd92b3c4c98e715ebed99b5d1c01c793e3.pack at org.eclipse.jgit.util.FileUtils.handleDeleteException(FileUtils.java:233) at org.eclipse.jgit.util.FileUtils.delete(FileUtils.java:226) at org.eclipse.jgit.util.FileUtils.delete(FileUtils.java:167) at org.eclipse.jgit.util.FileUtils.delete(FileUtils.java:169) at org.eclipse.jgit.util.FileUtils.delete(FileUtils.java:169) at org.eclipse.jgit.util.FileUtils.delete(FileUtils.java:169) at org.eclipse.jgit.util.FileUtils.delete(FileUtils.java:169) at org.eclipse.jgit.junit.LocalDiskRepositoryTestCase.recursiveDelete(LocalDiskRepositoryTestCase.java:262) at org.eclipse.jgit.junit.LocalDiskRepositoryTestCase$Cleanup.onShutdown(LocalDiskRepositoryTestCase.java:659) at org.eclipse.jgit.junit.LocalDiskRepositoryTestCase$Cleanup.lambda$0(LocalDiskRepositoryTestCase.java:631) at org.eclipse.jgit.internal.util.ShutdownHook.notify(ShutdownHook.java:99) at java.base/java.util.stream.ForEachOps$ForEachOp$OfRef.accept(ForEachOps.java:183) at java.base/java.util.concurrent.ConcurrentHashMap$KeySpliterator.forEachRemaining(ConcurrentHashMap.java:3573) at java.base/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:509) at java.base/java.util.stream.ForEachOps$ForEachTask.compute(ForEachOps.java:290) at java.base/java.util.concurrent.CountedCompleter.exec(CountedCompleter.java:754) at java.base/java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:373) at java.base/java.util.concurrent.ForkJoinPool$WorkQueue.helpComplete(ForkJoinPool.java:1223) at java.base/java.util.concurrent.ForkJoinPool.helpComplete(ForkJoinPool.java:1915) at java.base/java.util.concurrent.ForkJoinTask.awaitDone(ForkJoinTask.java:433) at java.base/java.util.concurrent.ForkJoinTask.invoke(ForkJoinTask.java:687) at java.base/java.util.stream.ForEachOps$ForEachOp.evaluateParallel(ForEachOps.java:159) at java.base/java.util.stream.ForEachOps$ForEachOp$OfRef.evaluateParallel(ForEachOps.java:173) at java.base/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:233) at java.base/java.util.stream.ReferencePipeline.forEach(ReferencePipeline.java:596) at java.base/java.util.stream.ReferencePipeline$Head.forEach(ReferencePipeline.java:765) at org.eclipse.jgit.internal.util.ShutdownHook.doCleanup(ShutdownHook.java:93) at org.eclipse.jgit.internal.util.ShutdownHook.lambda$1(ShutdownHook.java:80) at java.base/java.util.concurrent.ForkJoinTask$AdaptedCallable.exec(ForkJoinTask.java:1428) at java.base/java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:373) at java.base/java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1182) at java.base/java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1655) at java.base/java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1622) at java.base/java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:165) Caused by: java.nio.file.FileSystemException: C:\Users\Nico\AppData\Local\Temp\jgit_testPush_10298860150716985621_tmp\tmp_6601173994848530209.git\objects\pack\pack-31d7bccd92b3c4c98e715ebed99b5d1c01c793e3.pack: Le processus ne peut pas accéder au fichier car ce fichier est utilisé par un autre processus at java.base/sun.nio.fs.WindowsException.translateToIOException(WindowsException.java:92) at java.base/sun.nio.fs.WindowsException.rethrowAsIOException(WindowsException.java:103) at java.base/sun.nio.fs.WindowsException.rethrowAsIOException(WindowsException.java:108) at java.base/sun.nio.fs.WindowsFileSystemProvider.implDelete(WindowsFileSystemProvider.java:275) at java.base/sun.nio.fs.AbstractFileSystemProvider.deleteIfExists(AbstractFileSystemProvider.java:110) at java.base/java.nio.file.Files.deleteIfExists(Files.java:1191) at org.eclipse.jgit.util.FileUtils.delete(FileUtils.java:219) ... 32 more

Issue Priority

Priority: 3

Issue Component

Component: Hop Gui

nadment avatar May 28 '24 19:05 nadment