Community
Participate
Working Groups
Similar to https://bugs.eclipse.org/bugs/show_bug.cgi?id=517107, using JGit/JGitRepository leaves a running thread behind. This is a bit annoying as we are running JGit from a piece of code executed by exec-maven-plugin, which tries to stop all threads spawned by the called code to ensure clean exit: [WARNING] thread Thread[JGit-FileStoreAttributeReader-1,5,xxx.ConfigureDocs] was interrupted but is still alive after waiting at least 15000msecs [WARNING] thread Thread[JGit-FileStoreAttributeReader-1,5,xxx.ConfigureDocs] will linger despite being asked to die via interruption [WARNING] NOTE: 1 thread(s) did not finish despite being asked to via interruption. This is not a problem with exec:java, it is a problem with the running code. Although not serious, it should be remedied. Use of JGit is supposedly fully contained: try { Repository gitRepo = new FileRepositoryBuilder().findGitDir().build() Git git = new Git(gitRepo, true) ... } finally { git.close() } For the WorkerQueue we can at least invoke shutdown() directly, but so far I haven't found a way to stop the FileStoreAttributeReader thread.
The FileStoreAttributeReader thread is a daemon thread hence I think there is no need to stop it.