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 230386 - Should not write to disk during startup
Summary: Should not write to disk during startup
Status: VERIFIED INCOMPLETE
Alias: None
Product: editor
Classification: Unclassified
Component: Options (show other bugs)
Version: 7.4
Hardware: All All
: P1 normal (vote)
Assignee: Milutin Kristofic
URL:
Keywords: REGRESSION, TEST
Depends on:
Blocks:
 
Reported: 2013-05-28 13:43 UTC by Jiri Skrivanek
Modified: 2013-06-19 09:05 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Stack traces from test. (101.85 KB, text/plain)
2013-05-28 13:44 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-05-28 13:43:59 UTC
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\config\Editors\text\x-java\Preferences\org-netbeans-modules-editor-settings-CustomPreferences.xml
Comment 1 Jiri Skrivanek 2013-05-28 13:44:21 UTC
Created attachment 135005 [details]
Stack traces from test.
Comment 2 Milutin Kristofic 2013-05-28 14:15:45 UTC
How often are you running this test? It is regression to which version?
Comment 3 Jiri Skrivanek 2013-05-28 14:23:36 UTC
This test runs every day. Now testWriteAccess fails 54 times in row. I can't specify build number when it started to fail. At least it is a regression to 7.3.1.

http://hudson4qe.cz.oracle.com/view/Trunk-QE/job/CV-multi-UI/887/testReport/
Comment 4 Milutin Kristofic 2013-05-29 11:41:25 UTC
After reading https://netbeans.org/bugzilla/show_bug.cgi?id=230385#c1

I run the test and I haven't seen exception.