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 192590 - Too many open files in LayerUtilsTest
Summary: Too many open files in LayerUtilsTest
Status: RESOLVED FIXED
Alias: None
Product: apisupport
Classification: Unclassified
Component: Project (show other bugs)
Version: 7.0
Hardware: Other Linux
: P2 normal (vote)
Assignee: Jesse Glick
URL:
Keywords: TEST
Depends on:
Blocks:
 
Reported: 2010-11-28 08:02 UTC by Jaroslav Tulach
Modified: 2010-12-02 06:23 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 Jaroslav Tulach 2010-11-28 08:02:16 UTC
The usage of mmapped file buffer is probably causing failures on Linux machines without tweaked open file limit. I've seen the failure locally, now it also fails on 
http://deadlock.netbeans.org/hudson/job/ergonomics/1735/testReport/junit/org.netbeans.modules.apisupport.project.layers/LayerUtilsTest/testSystemFilesystemStandaloneProject/
The test needs to be rewritten to pass in all environment or excluded from the unit test validaton.

---- Output ---

Error Message

/space/workspace/ergonomics/apisupport.project/build/test/unit/work/o.n.m.a.p.l.L/sfsp/build.properties (Too many open files)
Stacktrace

java.io.FileNotFoundException: /space/workspace/ergonomics/apisupport.project/build/test/unit/work/o.n.m.a.p.l.L/sfsp/build.properties (Too many open files)
	at java.io.FileOutputStream.open(Native Method)
	at java.io.FileOutputStream.<init>(FileOutputStream.java:179)
	at java.io.FileOutputStream.<init>(FileOutputStream.java:131)
	at org.netbeans.modules.apisupport.project.TestBase.initializeBuildProperties(TestBase.java:212)
	at org.netbeans.modules.apisupport.project.TestBase.initializeBuildProperties(TestBase.java:187)
	at org.netbeans.modules.apisupport.project.layers.LayerUtilsTest.setUp(LayerUtilsTest.java:118)
	at org.netbeans.junit.NbTestCase.runBare(NbTestCase.java:357)
	at org.netbeans.junit.NbTestCase.run(NbTestCase.java:228)
Standard Output

Storing and loading in-memory cache
Storing external cache into /space/workspace/ergonomics/apisupport.project/build/test/unit/work/o.n.m.a.p.l.L/clfsjisp/cache
CLFS Jar initial scan takes 2531 ms
CLFS Jar initial scan performance test finished
Storing external cache into /space/workspace/ergonomics/apisupport.project/build/test/unit/work/o.n.m.a.p.l.L/clfsisp/cache
CLFS initial scan takes 1787 ms
CLFS initial scan performance test finished
Loading external cache from /space/workspace/ergonomics/apisupport.project/build/test/unit/work/o.n.m.a.p.l.L/clfsisp/cache, 500 files
Comment 1 Jesse Glick 2010-11-29 21:08:15 UTC
core-main #dbf10eaec519
Comment 2 Quality Engineering 2010-12-01 06:39:14 UTC
Integrated into 'main-golden', will be available in build *201012010001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/dbf10eaec519
User: Jesse Glick <jglick@netbeans.org>
Log: #192590: Too many open files in LayerUtilsTest
Comment 3 Quality Engineering 2010-12-02 06:23:47 UTC
Integrated into 'main-golden', will be available in build *201012020001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/7a5ce64876ef
User: Jaroslav Tulach <jtulach@netbeans.org>
Log: Proper fix for #192590: testCLFSPerformance, testXMLFSPerformance, testXMLFSJarPerformance. testSystemFilesystemSuiteComponentProject, testSystemFilesystemLocalizedNames, testSystemFilesystemLocalizedNamesI18N, testMasks continue to fail