Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [jgit-dev] Windows locking pack files

On Sun, Oct 22, 2017 at 3:51 AM, Campbell, Sean <Sean.Campbell@xxxxxxxx> wrote:

Hi everyone!

I see from digging for a few hours this is has been a tricky topic for jgit historically. I am forced to  use windows(7 Enterprise) and have been running into a brick wall for a few days on this one…Here are the details:

-        Using the latest build (4.9.0.201710071750-r)

-        I am calling Repository.close() after completing work.

-        I have stepped through and in Repository.close() newCount==0  is true and doClose() is called.

-        2017-10-21 21:48:05.010 ERROR 14852 --- [nio-8080-exec-1] o.tiaa.prt.services.PrismGitServiceImpl  : Problem deleting working folder:Could not delete file C:\Users\campse\workspaces\sor\prismReleaseTool\.\workingDir\.git\objects\pack\pack-1348c11034913c2e44b2e81db5a4f804120c3258.pack

 

I am kind of stuck  and I  hate to abandon an otherwise very effective API? Any suggestions folks?


this happens if some process (your application or another process) still has an open file handle on the pack file
when jgit tries to delete it. You can try to use file leak detector [1] to find out which code opened the handle and
didn't close it or you can try to use ProcessMonitor [2] to trace access to the pack files of your repository.


-Matthias

Back to the top