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 - Failing org.openide.loaders.DataFolderTimeOrderTest
Summary: Failing org.openide.loaders.DataFolderTimeOrderTest
Status: VERIFIED FIXED
Alias: None
Product: platform
Classification: Unclassified
Component: Data Systems (show other bugs)
Version: 8.0.1
Hardware: PC Windows 7
: P3 normal (vote)
Assignee: Jaroslav Havlin
URL:
Keywords: RANDOM
Depends on:
Blocks:
 
Reported: 2014-08-12 13:15 UTC by Jiri Skrivanek
Modified: 2014-12-08 09:42 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Error log. (20.26 KB, text/plain)
2014-08-12 13:15 UTC, Jiri Skrivanek
Details

Note You need to log in before you can comment on or make changes to this bug.
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.