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 105161 - Versioning causes long automount delays
Summary: Versioning causes long automount delays
Status: RESOLVED FIXED
Alias: None
Product: versioncontrol
Classification: Unclassified
Component: Code (show other bugs)
Version: 6.x
Hardware: All All
: P2 blocker (vote)
Assignee: issues@versioncontrol
URL:
Keywords:
: 105199 118245 166781 (view as bug list)
Depends on:
Blocks:
 
Reported: 2007-05-30 16:14 UTC by Maros Sandor
Modified: 2009-06-10 16:38 UTC (History)
4 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Maros Sandor 2007-05-30 16:14:12 UTC
Versioning systems often try to autodetect versioned files and folders by
scanning the filesystem for versioning metadata (CVS, .hg, etc.) In some cases,
this scan causes excessive delays because OS tries to mount the requested
folder. For example, while testing whether "/net/projects/myproject/a.txt" is
versioned the CVS module eventually tests for the existence of "/net/CVS" which
causes the OS (automount) to start looking for the "CVS" server. This test takes
up to a minute with full system load under some systems. While the OS is to
blame here it seems we have to put a workaround in the IDE too.
Comment 1 Maros Sandor 2007-06-01 14:01:10 UTC
Targetting for 6.0.
Comment 2 Padraig Obriain 2007-06-07 13:37:13 UTC
*** Issue 105199 has been marked as a duplicate of this issue. ***
Comment 3 Maros Sandor 2007-06-08 15:13:56 UTC
This cannot be resolved on the versioning manager (VM) level because of the call
to versioningSystem.getTopmostManagedAncestor(File). During this call, a VS
scans the directory tree up until it finds its metadata or hits the root. So,
the solution would be to either:
1) stop at some well-know directory level (/net for example)
2) track time it takes to query a directory and never query that again if it
takes too long
We have two bad options to choose from, I'll try the first one first to see if
it resolves the issue.
Comment 4 Maros Sandor 2007-07-25 10:27:31 UTC
You can define list of unversioned folders (such as /net) in the IDE configuration now. Edit (or create) file
"userdir/config/Preferences/org/netbeans/modules/versioning.properties" and add the "unversionedFolders" property which
can contain semicolon-separated list of folders that should not be automatically scanned for versioning metadata, for
example:

unversionedFolders = /net

Note that those folders will be excluded from all versioning operations, recursively.

/shared/data/ccvs/repository/versioncontrol/mercurial/src/org/netbeans/modules/mercurial/Attic/Mercurial.java,v  <-- 
Mercurial.java
new revision: 1.1.2.31; previous revision: 1.1.2.30
/shared/data/ccvs/repository/versioncontrol/util/src/org/netbeans/modules/versioning/util/Utils.java,v  <--  Utils.java
new revision: 1.6; previous revision: 1.5
/shared/data/ccvs/repository/javacvs/cvsmodule/src/org/netbeans/modules/versioning/system/cvss/CvsVersioningSystem.java,v
 <--  CvsVersioningSystem.java
new revision: 1.76; previous revision: 1.75
/shared/data/ccvs/repository/subversion/main/src/org/netbeans/modules/subversion/Subversion.java,v  <--  Subversion.java
new revision: 1.94; previous revision: 1.93
Comment 5 Peter Pis 2007-11-28 12:22:37 UTC
*** Issue 118245 has been marked as a duplicate of this issue. ***
Comment 6 Ondrej Vrabec 2009-06-10 16:38:25 UTC
*** Issue 166781 has been marked as a duplicate of this issue. ***