This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 218443 - NetBeans does not close file descriptor after closing a Maven based git project
Summary: NetBeans does not close file descriptor after closing a Maven based git project
Status: RESOLVED FIXED
Alias: None
Product: versioncontrol
Classification: Unclassified
Component: Git (show other bugs)
Version: 7.3
Hardware: PC Windows 7 x64
: P3 normal (vote)
Assignee: Ondrej Vrabec
URL:
Keywords:
: 212502 (view as bug list)
Depends on: 221498
Blocks:
  Show dependency tree
 
Reported: 2012-09-17 07:41 UTC by crazyjavahacking
Modified: 2012-11-17 02:42 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
NetBeans git bug (18.90 KB, image/png)
2012-09-17 07:41 UTC, crazyjavahacking
Details

Note You need to log in before you can comment on or make changes to this bug.
Description crazyjavahacking 2012-09-17 07:41:44 UTC
Created attachment 124428 [details]
NetBeans git bug

NetBeans will hold a file descriptor even after a git project s closed. This is especially annoying on Win platform where after that I cannot move or remove such directory.

To reproduce on Win OS, just open a git based project (in my case Maven java se) in NetBeans and close it. Then try to remove it. Not sure if this is important, but in my case the project was unloadable (because of missing Maven plugins).


NetBeans 7.2 & Dev 201209160001
Comment 1 Ondrej Vrabec 2012-09-17 15:50:03 UTC
Right, jgit keeps some files open for certain repositories (those having objects packed in .pack files). Closing a project does not help because NetBeans still remembers the git repository - versioned folders are project-independent and closing/opening a project has no impact on versioning subsystem. You can see that the repository is kept in Git -> Repositories window.
We should find a way to "disconnect" from the local repository and release occupied resources and mainly identify the point when they're not needed any more.
Comment 2 Ondrej Vrabec 2012-11-02 13:18:40 UTC
*** Bug 212502 has been marked as a duplicate of this bug. ***
Comment 3 Ondrej Vrabec 2012-11-16 14:17:58 UTC
fix: http://hg.netbeans.org/core-main/rev/0c736b217280
Comment 4 Ondrej Vrabec 2012-11-16 14:19:12 UTC
with the fix all open and locked files should be closed and released after about 10secs after every git action or command finishes
Comment 5 Quality Engineering 2012-11-17 02:42:26 UTC
Integrated into 'main-golden', will be available in build *201211170002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/0c736b217280
User: Ondrej Vrabec <ovrabec@netbeans.org>
Log: #218443 - NetBeans does not close file descriptor after closing a Maven based git project
releasing client when it's not needed any more