Please use the Apache issue tracking system for new NetBeans issues ( !!
Bug 176526 - conflicts in /tmp/dlight_* or /var/tmp/dlight_* directory if 4 IDEs is started on one machine
conflicts in /tmp/dlight_* or /var/tmp/dlight_* directory if 4 IDEs is starte...
Product: cnd
Classification: Unclassified
Component: D-Light
PC Linux
: P3 (vote)
: 6.x
Assigned To: Alexey Vladykin
Depends on:
  Show dependency treegraph
Reported: 2009-11-11 07:01 UTC by soldatov
Modified: 2009-11-16 03:22 UTC (History)
0 users

See Also:
Issue Type: DEFECT

Patch for Andrew's review (3.86 KB, patch)
2009-11-12 11:25 UTC, Alexey Vladykin
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description soldatov 2009-11-11 07:01:58 UTC
QA server (automatic testes) can launch 4 IDEs with different user directory on one machine. I think we have conflicts in /tmp/dlight_* or /var/tmp/dlight_* directory.
Comment 1 Alexey Vladykin 2009-11-12 02:46:24 UTC
There should be no conflicts, because DLight creates files in /tmp/dlight_* with random names. But I'll double check.
Comment 2 Alexey Vladykin 2009-11-12 03:50:48 UTC
Valera, do you have any evidence of conflicts?
Comment 3 soldatov 2009-11-12 04:20:17 UTC
No. Originally it was the question from issue 176167. What about /tmp/dlight_* or /var/tmp/dlight_*? Can we corrupt it, if 2 IDE is started? Mainly I had problems with cache from /tmp/*-cnd68-caches-0, but it is resolved. In latest test results I see very seldom exception only:

Unexpected exceptions found in message.log ([Caused: org.netbeans.modules.masterfs.filebasedfs.utils.FSException: Cannot get exclusive access to /export/hudson/workspace/cnd-test-sparc-S2-2/tests/build/test/qa-functional/data/cnd/projects/TestAddCppOrCFiles/testAddMainCppFile1/files/dir/dir/file.cpp (probably opened for reading).]):

But I think it is other problem.

First can not create and use /tmp/dlight_*/ directory, but second delete it?
Comment 4 Alexey Vladykin 2009-11-12 06:31:35 UTC
OK, so here is what I've found.

Potential conflicts on local host (there is some collision protection, but it works only within single NetBeans instance):
DerbyDataStorage.<init>() - creates new database in tmpdir/derby_dlight/ without checking that the database does not exist yet
H2DataStorage.<init>() - creates new database in tmpdir/h2_db_dlight/ without checking that the database does not exist yet
SunStudioDataCollector.init() - creates new experiment in tmpdir/ without checking that the experiment does not exist yet

Potential conflicts on remote host:
UnbufferSupport.initUnbuffer() - uploads unbuffer libs to remote tmpdir/bin/nativeexecution/
LLDataCollector.init() - uploads agent and monitor to remote tmpdir/tools/
Comment 5 Andrew Krasny 2009-11-12 06:44:29 UTC

this issue was already discussed (and Valera was oresent, actually) ;)
But we already came to an agreement that we will have all dlight stuff in /var/tmp/dlight_username/${KEY}/...

where key is a hascode(?) of NBuserdir + local machine unique identifier.
Comment 6 Alexey Vladykin 2009-11-12 11:25:00 UTC
Created attachment 90937 [details]
Patch for Andrew's review
Comment 7 Alexey Vladykin 2009-11-13 08:44:09 UTC
Fixed in
Thanks to Andrew for reviewing the fix.
Comment 8 Quality Engineering 2009-11-16 03:22:21 UTC
Integrated into 'main-golden', will be available in build *200911160201* on (upload may still be in progress)
User: Alexey Vladykin <>
Log: Bug #176526: conflicts in /tmp/dlight_* or /var/tmp/dlight_* directory if 4 IDEs is started on one machine

By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2014, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo