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 256887 - org.openide.awt.QuickSearchTest.testAsynchronous is failing
Summary: org.openide.awt.QuickSearchTest.testAsynchronous is failing
Status: RESOLVED FIXED
Alias: None
Product: platform
Classification: Unclassified
Component: Quick Search (show other bugs)
Version: 8.2
Hardware: All All
: P1 normal (vote)
Assignee: Martin Entlicher
URL: http://deadlock.netbeans.org/job/NB-C...
Keywords:
Depends on:
Blocks:
 
Reported: 2015-12-01 10:14 UTC by Martin Entlicher
Modified: 2015-12-03 02:24 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 Martin Entlicher 2015-12-01 10:14:03 UTC
There is a race-condition in the test.
Comment 1 Martin Entlicher 2015-12-01 10:50:54 UTC
It was found out, that the race-condition wasn't in the test, but in the implementation.

Fixed by changeset:   294215:5f07092bdab3
http://hg.netbeans.org/core-main/rev/5f07092bdab3
Comment 2 Martin Entlicher 2015-12-01 12:29:05 UTC
The error message of the test was:

The test testAsynchronous did not finish in 299240ms
"Test Watch Dog: testAsynchronous" Id=19 in WAITING waiting on lock=[Ljava.lang.Boolean;@621be5d1
	 at java.lang.Object.wait(Native Method)
	 at java.lang.Object.wait(Object.java:502)
	 at org.openide.awt.QuickSearchTest.testAsynchronous(QuickSearchTest.java:454)
	 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	 at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	 at java.lang.reflect.Method.invoke(Method.java:497)
	 at junit.framework.TestCase.runTest(TestCase.java:176)
	 at org.netbeans.junit.NbTestCase.access$200(NbTestCase.java:102)
	 at org.netbeans.junit.NbTestCase$2.doSomething(NbTestCase.java:478)
	 at org.netbeans.junit.NbTestCase$1Guard.run(NbTestCase.java:404)
	 at java.lang.Thread.run(Thread.java:745)

Other threads were not involved.
Comment 3 Quality Engineering 2015-12-03 02:24:02 UTC
Integrated into 'main-silver', will be available in build *201512030002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/5f07092bdab3
User: mentlicher@netbeans.org
Log: #256887: Resolving a race-condition, hasSearchText needs to be accessed in EQ exclusively.