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 245460 - svn update fails due to background scanning locks
Summary: svn update fails due to background scanning locks
Status: RESOLVED WONTFIX
Alias: None
Product: javaee
Classification: Unclassified
Component: Web Project (show other bugs)
Version: 8.0
Hardware: PC Windows 7
: P4 normal (vote)
Assignee: David Konecny
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-07-08 06:15 UTC by williescholtz
Modified: 2016-07-07 08:56 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
IDE log (127.98 KB, text/plain)
2014-07-08 06:16 UTC, williescholtz
Details

Note You need to log in before you can comment on or make changes to this bug.
Description williescholtz 2014-07-08 06:15:58 UTC
Product Version = NetBeans IDE 8.0 (Build 201403101706)
Operating System = Windows 7 version 6.1 running on amd64
Java; VM; Vendor = 1.7.0_25
Runtime = Java HotSpot(TM) 64-Bit Server VM 23.25-b01

This has been happening for quite some time, it is easily reproducable, as soon as I click on svn update the background scanning process kicks off, in some cases this locks one of the directories that is being updated:

update -r HEAD --force C:\Projects\X\Core --config-dir C:\Users\Willie\AppData\Roaming\NetBeans\8.0\config\svn\config --non-interactive --username willie --password ******
svn: Can't remove file 'C:\Projects\X\Core\web\releases\client\a\b\c\d\.svn\lock': The process cannot access the file because it is being used by another process. 

This forces you to update multiple times until it completes successfully
Comment 1 williescholtz 2014-07-08 06:16:07 UTC
Created attachment 147927 [details]
IDE log
Comment 2 Ondrej Vrabec 2014-07-14 12:48:23 UTC
i don't think scanning comes in the way. Subversion update runs in a special wrapper that blocks scanning until it finishes. I just tried and the scanning is started only after the update ends.
I found this in messages.log:
Has children [all-wcprops, entries, prop-base, props, text-base, tmp]
msg

Parent exists: C:\Projects\Spearhead\Core\web\releases\client script\rule\dependants\checklist\.svn

Has children [all-wcprops, entries, prop-base, props, text-base, tmp]
Caused: java.io.FileNotFoundException: Can't read C:\Projects\Spearhead\Core\web\releases\client script\rule\dependants\checklist\.svn\lock
	at org.netbeans.modules.masterfs.filebasedfs.fileobjects.FileObj.getInputStream(FileObj.java:214)
	at org.netbeans.modules.web.project.WebProject$CopyOnSaveSupport.handleCopyFileToDestDir(WebProject.java:1997)
	at org.netbeans.modules.web.project.WebProject$CopyOnSaveSupport.handleCopyFileToDestDir(WebProject.java:1964)
[catch] at org.netbeans.modules.web.project.WebProject$CopyOnSaveSupport.fileDataCreated(WebProject.java:1773)
	at org.netbeans.modules.masterfs.filebasedfs.fileobjects.FileObjectKeeper.fileDataCreated(FileObjectKeeper.java:314)

So in fact it looks webproject.copyOnSave support blocks the svn update. Additionally it's trying to copy .svn folder somewhere although this folder is not supposed to be copied (it's made invisible by VisibilityQuery and a subversion metadata folder).
Comment 3 Martin Balin 2016-07-07 08:56:33 UTC
This old bug may not be relevant anymore. If you can still reproduce it in 8.2 development builds please reopen this issue.

Thanks for your cooperation,
NetBeans IDE 8.2 Release Boss