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 212071

Summary: Writing any files to disk during start is inefficient - userdir/.metadata
Product: platform Reporter: Jiri Skrivanek <jskrivanek>
Component: NetigsoAssignee: Jaroslav Tulach <jtulach>
Status: VERIFIED FIXED    
Severity: normal CC: mmirilovic
Priority: P1    
Version: 7.2   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:
Attachments: Stack trace.

Description Jiri Skrivanek 2012-05-04 09:55:19 UTC
Created attachment 119076 [details]
Stack trace.

Writing any files to disk during start is inefficient and usualy unnecessary.
Consider using declarative registration in your layer.xml file, or delaying
the initialization of the whole subsystem till it is really used.
In case it is necessary to perform the write, you can modify the
'allowed-file-write.txt' file in ide.kit module. More details at
http://wiki.netbeans.org/FitnessViaWhiteAndBlackList
checkWrite: C:\space\hudson\workspace\CV-multi-UI\jdk\JDK 7\label\XP-slave3\testdistribution\qa-functional\work\org-netbeans-modules-java-kit\userdir0\.metadata
java.lang.Exception: checkWrite: C:\space\hudson\workspace\CV-multi-UI\jdk\JDK 7\label\XP-slave3\testdistribution\qa-functional\work\org-netbeans-modules-java-kit\userdir0\.metadata
	at org.netbeans.test.ide.CountingSecurityManager.checkWrite(CountingSecurityManager.java:416)
	at java.io.File.mkdir(File.java:1237)
	at java.io.File.mkdirs(File.java:1266)
	at org.eclipse.core.internal.runtime.DataArea.createLocation(DataArea.java:155)
Comment 1 Jaroslav Tulach 2012-05-14 07:02:40 UTC
Jirko, I expect that some test in CV is failing. Would you be so kind and tell me which one?
Comment 2 Jiri Skrivanek 2012-05-14 07:05:45 UTC
I am sorry to not mention it. It is org.netbeans.test.ide.IDECommitValidationTest.testWriteAccess and results can be found here http://hudson4qe.cz.oracle.com/view/Trunk-QE/job/CV-multi-UI.
Comment 3 Jaroslav Tulach 2012-05-14 13:18:47 UTC
Allowing $userdir/.metadata to be created: fdedf4d1db62
Comment 4 Quality Engineering 2012-05-16 11:03:43 UTC
Integrated into 'main-golden', will be available in build *201205160400* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/fdedf4d1db62
User: Jaroslav Tulach <jtulach@netbeans.org>
Log: #212071: $userdir/.metadata can be created