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 203483

Summary: LocalHistory should not write to disk during startup
Product: versioncontrol Reporter: Jiri Skrivanek <jskrivanek>
Component: LocalhistoryAssignee: Tomas Stupka <tstupka>
Status: VERIFIED FIXED    
Severity: normal Keywords: REGRESSION, TEST
Priority: P1    
Version: 7.1   
Hardware: All   
OS: All   
URL: http://hudson4qe.cz.oracle.com/view/Trunk-QE/job/CV-multi-UI/308/jdk=JDK%207,label=ubuntu/testReport/org.netbeans.test.ide/IDECommitValidationTest/testWriteAccess/?
Issue Type: DEFECT Exception Reporter:

Description Jiri Skrivanek 2011-10-11 08:56:43 UTC
Automated test discovered that LocalHistory module writes to disk during startup. It happens since build 201110100600. To reproduce:

- open java.kit project in IDE
- open IDECommitValidationTest from Functional Test Packages
- run this test (Ctrl+F6). The first test case testWriteAccess should pass. But there are error messages like the following (more on the URL specified):

No writes during startup. 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: /space/hudson/workspace/CV-multi-UI/jdk/JDK 7/label/ubuntu/testdistribution/qa-functional/work/org-netbeans-modules-java-kit/userdir0/var/filehistory java.lang.Exception: checkWrite: /space/hudson/workspace/CV-multi-UI/jdk/JDK 7/label/ubuntu/testdistribution/qa-functional/work/org-netbeans-modules-java-kit/userdir0/var/filehistory
at org.netbeans.test.ide.CountingSecurityManager.checkWrite(CountingSecurityManager.java:416)
Comment 1 Tomas Stupka 2011-10-11 16:00:28 UTC
fixed
http://hg.netbeans.org/core-main/rev/3f776c305326
Comment 2 Quality Engineering 2011-10-12 14:20:13 UTC
Integrated into 'main-golden'
Changeset: http://hg.netbeans.org/main-golden/rev/3f776c305326
User: Tomas Stupka <tstupka@netbeans.org>
Log: Issue #203483 - LocalHistory should not write to disk during startup