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 246405

Summary: Failing org.openide.loaders.DataFolderTimeOrderTest
Product: platform Reporter: Jiri Skrivanek <jskrivanek>
Component: Data SystemsAssignee: Jaroslav Havlin <jhavlin>
Status: VERIFIED FIXED    
Severity: normal Keywords: RANDOM
Priority: P3    
Version: 8.0.1   
Hardware: PC   
OS: Windows 7   
Issue Type: DEFECT Exception Reporter:
Attachments: Error log.

Description Jiri Skrivanek 2014-08-12 13:15:14 UTC
Created attachment 148652 [details]
Error log.

Test org.openide.loaders.DataFolderTimeOrderTest.testLastModifiedOrderUpdatedAfterFileIsTouched fails from time to time on ubuntu. It fails both in NetBeans 8.0.1 and dev builds (JDK 8u11 and 7u65). If you know about changes which may cause such failures please fix it. I can not reproduce it manually. It fails only within suite of unit tests here:

http://test4u.cz.oracle.com/job/StableBTD-8.0.1/
http://test4u.cz.oracle.com/job/StableBTD-trunk/
Comment 1 Ondrej Vrabec 2014-12-03 15:19:00 UTC
failing every other run of Nb-Core-Build also.
Comment 2 Ondrej Vrabec 2014-12-03 15:32:49 UTC
This could help. I was able to reproduce the fail with debugger's help, it's caused by a race condition between data folder's children refresh and node's children update.

fixed: core-main #8c626dca5f1a
Comment 3 Quality Engineering 2014-12-05 04:17:10 UTC
Integrated into 'main-silver', will be available in build *201412050001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/8c626dca5f1a
User: Ondrej Vrabec <ovrabec@netbeans.org>
Log: Issue #246405 - Failing org.openide.loaders.DataFolderTimeOrderTest
Fixing failing test. The test should wait not only for a datafolder's refresh but also for the equivalent node's refresh.
Listening on childrenReordered event seems to help.