Community
Participate
Working Groups
Unable to finish git clone when shutting down gracefully I am implementing a graceful shutdown. The purpose is for all the tasks those were initiated before a SIGTERM to finish successfully before my application fully stops. However IllegalStateException occurs if a SIGTERM was called during a org.eclipse.jgit.api.CloneCommand.call() ------------- java.lang.IllegalStateException: Shutdown in progress at java.base/java.lang.ApplicationShutdownHooks.remove(ApplicationShutdownHooks.java:82) at java.base/java.lang.Runtime.removeShutdownHook(Runtime.java:241) at org.eclipse.jgit.api.CloneCommand.call(CloneCommand.java:200) ------------- I found out that cleanupHook was added to the code on 5/13 2017 by this commit which is causing this failure. https://git.eclipse.org/c/jgit/jgit.git/commit/?id=9f98d3e2e4af009e1a5bad7e40969b241d45468b An exception handling is needed here. Git clone fails without any reason to.
New Gerrit change created: https://git.eclipse.org/r/c/jgit/jgit/+/183925
Gerrit change https://git.eclipse.org/r/c/jgit/jgit/+/183925 was merged to [master]. Commit: http://git.eclipse.org/c/jgit/jgit.git/commit/?id=6817b7e3b4ea55f896aeb07126cffea81abf901f