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 268038 - Supress writes during startup
Summary: Supress writes during startup
Status: VERIFIED FIXED
Alias: None
Product: cnd
Classification: Unclassified
Component: Code Model (show other bugs)
Version: Dev
Hardware: All All
: P1 normal (vote)
Assignee: Alexander Simon
URL:
Keywords: 82_HR_FIX, TEST
Depends on:
Blocks:
 
Reported: 2016-09-15 09:19 UTC by Jiri Skrivanek
Modified: 2016-09-19 09:19 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 2016-09-15 09:19:09 UTC
Please, suppress any writes to filesystem during startup or add it to whitelist if it is really necessary. Since build 201609150002 our test is failing.

http://test4u.uk.oracle.com/job/CommitValidationUI-trunk/lastCompletedBuild/testReport/

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: C:\space\hudson\workspace\CommitValidationUI-trunk\jdk\jdk8\label\win8\testdistribution\qa-functional\work\org-netbeans-modules-java-kit\userdir0\var\cache\cnd
java.lang.Exception: checkWrite: C:\space\hudson\workspace\CommitValidationUI-trunk\jdk\jdk8\label\win8\testdistribution\qa-functional\work\org-netbeans-modules-java-kit\userdir0\var\cache\cnd
	at org.netbeans.test.ide.CountingSecurityManager.checkWrite(CountingSecurityManager.java:416)
	at java.io.File.mkdir(File.java:1311)
	at java.io.File.mkdirs(File.java:1343)
	at org.openide.modules.Places.getCacheSubdirectory(Places.java:113)
	at org.netbeans.modules.cnd.modelui.actions.CleanupCachePseudoOptionProcessor.cleanupCache(CleanupCachePseudoOptionProcessor.java:101)
	at org.netbeans.modules.cnd.modelui.actions.CleanupCachePseudoOptionProcessor.getOptions(CleanupCachePseudoOptionProcessor.java:71)
	at org.netbeans.spi.sendopts.Option$1.getOptions(Option.java:384)
	at org.netbeans.api.sendopts.CommandLine.getOptions(CommandLine.java:416)
	at org.netbeans.api.sendopts.CommandLine.process(CommandLine.java:144)
	at org.netbeans.modules.sendopts.HandlerImpl.execute(HandlerImpl.java:62)
	at org.netbeans.modules.sendopts.Handler.cli(Handler.java:69)
	at org.netbeans.CLIHandler.notifyHandlers(CLIHandler.java:234)
	at org.netbeans.core.startup.CLICoreBridge.cli(CLICoreBridge.java:82)
	at org.netbeans.CLIHandler.notifyHandlers(CLIHandler.java:234)
	at org.netbeans.CLIHandler$1.exec(CLIHandler.java:268)
	at org.netbeans.CLIHandler.finishInitialization(CLIHandler.java:447)
	at org.netbeans.MainImpl.finishInitialization(MainImpl.java:256)
	at org.netbeans.Main.finishInitialization(Main.java:92)
	at org.netbeans.core.startup.Main.start(Main.java:316)
	at org.netbeans.core.startup.TopThreadGroup.run(TopThreadGroup.java:123)
	at java.lang.Thread.run(Thread.java:745)
Comment 1 Alexander Simon 2016-09-15 10:22:35 UTC
fixed, change set:
http://hg.netbeans.org/cnd-main/rev/341045feecfd
Comment 2 Quality Engineering 2016-09-16 02:28:34 UTC
Integrated into 'main-silver', will be available in build *201609160002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/341045feecfd
User: Alexander Simon <alexvsimon@netbeans.org>
Log: fixed Bug #268038 Supress writes during startup
Comment 3 Jiri Skrivanek 2016-09-16 10:20:34 UTC
Verified. Thanks.
Comment 4 Alexander Simon 2016-09-19 09:19:41 UTC
transplanted in releases, branch release82:
http://hg.netbeans.org/releases/rev/715bd2daee7a