Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
nadment opened this issue May 28, 2024 · 0 comments
Closed

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

nadment opened this issue May 28, 2024 · 0 comments
Assignees
Labels
Milestone

Comments

@nadment
Copy link
Contributor

nadment commented May 28, 2024

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

@github-actions github-actions bot added P3 Nice to have Hop Gui labels May 28, 2024
@gvdutra gvdutra self-assigned this Aug 19, 2024
hansva added a commit to gvdutra/hop that referenced this issue Aug 21, 2024
hansva added a commit that referenced this issue Aug 21, 2024
bug #3994 Issue with tests in hop-plugins-misc-git on Windows
@hansva hansva added this to the 2.10 milestone Aug 21, 2024
@hansva hansva closed this as completed Aug 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants