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 67196 - org.openide.loaders.DataFolderIndexTest
Summary: org.openide.loaders.DataFolderIndexTest
Status: VERIFIED FIXED
Alias: None
Product: platform
Classification: Unclassified
Component: Data Systems (show other bugs)
Version: 5.x
Hardware: All All
: P3 blocker (vote)
Assignee: Jaroslav Tulach
URL: http://beetle.czech:8080/unittest/Tes...
Keywords: TEST
Depends on:
Blocks:
 
Reported: 2005-10-20 13:39 UTC by Jaroslav Tulach
Modified: 2008-12-22 18:47 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Failure from 051025-053455 (208.37 KB, text/plain)
2005-10-26 09:43 UTC, Jaroslav Tulach
Details
Nov 11, 2005 (86.14 KB, text/html)
2005-11-15 07:48 UTC, Jaroslav Tulach
Details
200511271900 failure (62.23 KB, text/html)
2005-11-30 14:58 UTC, Jaroslav Tulach
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jaroslav Tulach 2005-10-20 13:39:40 UTC
Node org.openide.nodes.FilterNode@1a786c3[Name=adam, displayName=adam] has as  
same position in Node's Index [[]]as in folder's Index  
[[org.openide.nodes.FilterNode@1a786c3[Name=adam, displayName=adam],  
org.openide.nodes.FilterNode@18088c0[Name=eva, displayName=eva],  
org.openide.nodes.FilterNode@1922221[Name=jakub, displayName=jakub],  
org.openide.nodes.FilterNode@fec107[Name=marie, displayName=marie]]].  
expected:<1> but was:<-1>
Comment 1 Jaroslav Tulach 2005-10-20 19:27:42 UTC
Logging will be better next time: 
openide/loaders/test/unit/src/org/openide/loaders/DataFolderIndexTest.java,v  
<--  DataFolderIndexTest.java 
new revision: 1.6; previous revision: 1.5 
Comment 2 Jaroslav Tulach 2005-10-26 09:43:43 UTC
Created attachment 26344 [details]
Failure from 051025-053455
Comment 3 Jaroslav Tulach 2005-10-26 09:44:28 UTC
. 
Comment 4 Jaroslav Tulach 2005-10-28 08:28:03 UTC
More logging to identify the possition in the for cycle. 
 
Checking in DataFolderIndexTest.java; 
/cvs/openide/loaders/test/unit/src/org/openide/loaders/DataFolderIndexTest.java,v  
<--  DataFolderIndexTest.java 
new revision: 1.8; previous revision: 1.7 
Comment 5 Jaroslav Tulach 2005-11-15 07:48:12 UTC
Created attachment 26947 [details]
Nov 11, 2005
Comment 6 Jaroslav Tulach 2005-11-15 07:49:02 UTC
. 
Comment 7 Jaroslav Tulach 2005-11-15 15:08:36 UTC
#67196: Very likely bug in test, seems that garbage collection kicks in and 
changes the behaviour somehow. Improving logs 
 
/cvs/openide/loaders/test/unit/src/org/openide/loaders/DataFolderIndexTest.java,v  
<--  DataFolderIndexTest.java 
new revision: 1.9; previous revision: 1.8 
 
Comment 8 Jaroslav Tulach 2005-11-30 14:57:57 UTC
Logs are here  
Comment 9 Jaroslav Tulach 2005-11-30 14:58:28 UTC
Created attachment 27443 [details]
200511271900 failure
Comment 10 Jaroslav Tulach 2005-11-30 18:37:51 UTC
Interesting bug in FolderChildren and GC interaction could lead to getNodes() 
returning empty array even it was not empty at all. 
 
RCS 
file: /cvs/openide/loaders/test/unit/src/org/openide/loaders/FolderChildrenGCRaceConditionTest.java,v 
done 
Checking in 
loaders/test/unit/src/org/openide/loaders/FolderChildrenGCRaceConditionTest.java; 
/cvs/openide/loaders/test/unit/src/org/openide/loaders/FolderChildrenGCRaceConditionTest.java,v  
<--  FolderChildrenGCRaceConditionTest.java 
initial revision: 1.1 
done 
RCS 
file: /cvs/openide/nodes/test/unit/src/org/openide/nodes/AddRemoveNotifyRaceConditionTest.java,v 
done 
Checking in 
nodes/test/unit/src/org/openide/nodes/AddRemoveNotifyRaceConditionTest.java; 
/cvs/openide/nodes/test/unit/src/org/openide/nodes/AddRemoveNotifyRaceConditionTest.java,v  
<--  AddRemoveNotifyRaceConditionTest.java 
initial revision: 1.1 
done 
IDE: [30.11.05 19:32] Committing Files finished 
 
IDE:------------------------------------------------- 
IDE: [30.11.05 19:32] Committing Files started 
Checking in nodes/src/org/openide/nodes/Children.java; 
/cvs/openide/nodes/src/org/openide/nodes/Children.java,v  <--  Children.java 
new revision: 1.5; previous revision: 1.4 
done 
Checking in nodes/src/org/openide/nodes/ChildrenArray.java; 
/cvs/openide/nodes/src/org/openide/nodes/ChildrenArray.java,v  <--  
ChildrenArray.java 
new revision: 1.3; previous revision: 1.2 
done 
Checking in loaders/src/org/openide/loaders/FolderChildren.java; 
/cvs/openide/loaders/src/org/openide/loaders/FolderChildren.java,v  <--  
FolderChildren.java 
new revision: 1.14; previous revision: 1.13 
done 
Checking in loaders/test/unit/src/org/openide/loaders/FolderChildrenTest.java; 
/cvs/openide/loaders/test/unit/src/org/openide/loaders/FolderChildrenTest.java,v  
<--  FolderChildrenTest.java 
new revision: 1.4; previous revision: 1.3 
 
Comment 11 Jaromir Uhrik 2006-01-16 15:44:59 UTC
Marking this issue as VERIFIED since the issue reporter == issue owner.