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 - LocalHistory should not write to disk during startup
Summary: LocalHistory should not write to disk during startup
Status: VERIFIED FIXED
Alias: None
Product: versioncontrol
Classification: Unclassified
Component: Localhistory (show other bugs)
Version: 7.1
Hardware: All All
: P1 normal (vote)
Assignee: Tomas Stupka
URL: http://hudson4qe.cz.oracle.com/view/T...
Keywords: REGRESSION, TEST
Depends on:
Blocks:
 
Reported: 2011-10-11 08:56 UTC by Jiri Skrivanek
Modified: 2011-10-17 15:06 UTC (History)
0 users

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 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