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

Summary: org.openide.awt.QuickSearchTest.testAsynchronous is failing
Product: platform Reporter: Martin Entlicher <mentlicher>
Component: Quick SearchAssignee: Martin Entlicher <mentlicher>
Status: RESOLVED FIXED    
Severity: normal    
Priority: P1    
Version: 8.2   
Hardware: All   
OS: All   
URL: http://deadlock.netbeans.org/job/NB-Core-Build/5068/testReport/junit/org.openide.awt/QuickSearchTest/testAsynchronous/
Issue Type: DEFECT Exception Reporter:

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.