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 230851 - Should not write to disk during startup
Summary: Should not write to disk during startup
Status: VERIFIED FIXED
Alias: None
Product: cnd
Classification: Unclassified
Component: Code Model (show other bugs)
Version: 7.4
Hardware: All All
: P2 normal (vote)
Assignee: Vladimir Kvashin
URL:
Keywords: REGRESSION, TEST
Depends on:
Blocks:
 
Reported: 2013-06-06 12:00 UTC by Jiri Skrivanek
Modified: 2013-07-01 09:04 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Stack traces from test. (13.70 KB, text/plain)
2013-06-06 12:00 UTC, Jiri Skrivanek
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jiri Skrivanek 2013-06-06 12:00:26 UTC
Created attachment 135442 [details]
Stack traces from test.

Automated test discovered writes to disk during startup. 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:

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

java.lang.Exception: checkWrite: D:\hg\main\java.kit\build\test\qa-functional\work\userdir0\var\cache\cnd\model
Comment 1 Alexander Simon 2013-06-06 13:04:59 UTC
repository...
Comment 2 Vladimir Kvashin 2013-06-21 11:31:29 UTC
fixed in cnd-main:
http://hg.netbeans.org/cnd-main/rev/8c9ffa295896
Comment 3 Quality Engineering 2013-06-25 02:45:09 UTC
Integrated into 'main-golden', will be available in build *201306242301* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/8c9ffa295896
User: Vladimir Kvashin <vkvashin@netbeans.org>
Log: fixed #230851 - Should not write to disk during startup