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 230385 - 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: Spellchecker (show other bugs)
Version: 7.4
Hardware: All All
: P1 normal (vote)
Assignee: Jan Lahoda
URL:
Keywords: REGRESSION, TEST
Depends on:
Blocks:
 
Reported: 2013-05-28 13:42 UTC by Jiri Skrivanek
Modified: 2013-06-19 09:04 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:42 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:42:51 UTC
Created attachment 135004 [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\dict
Comment 1 Jan Lahoda 2013-05-29 07:35:09 UTC
I clicked through several reports in here:
http://hudson4qe.cz.oracle.com/view/Trunk-QE/job/CV-multi-UI/887/testReport/
and I see only the failures caused by bug #230387. I ran the test twice on my Win7 using:
c:\Users\jlahoda\apache-ant-1.8.3\bin\ant -f d:/outgoing/java.kit/build.xml -Dtest.includes=org/netbeans/test/ide/IDECommitValidationTest.java -Dtest.type=qa-functional -Dcontinue.after.failing.tests=true test-single
(which is analogous to the command line used by the IDE), and have only seen the failure caused by bug #230387. What do I need to do to see the spellchecker failure? Thanks.
Comment 2 Jiri Skrivanek 2013-05-29 08:33:43 UTC
You are right, now I can't see stack trace from spellchecker. But in the attached log file it was there. Probably it is somehow random. I will evaluate test results and reopen if it appears again.