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 182637 - Not all 1000 threads should have completed, but 1000 did.
Summary: Not all 1000 threads should have completed, but 1000 did.
Status: RESOLVED FIXED
Alias: None
Product: platform
Classification: Unclassified
Component: -- Other -- (show other bugs)
Version: 6.x
Hardware: Other Linux
: P2 normal (vote)
Assignee: _ tboudreau
URL:
Keywords: TEST
Depends on:
Blocks:
 
Reported: 2010-03-24 09:34 UTC by Jaroslav Tulach
Modified: 2010-04-02 05:18 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 Jaroslav Tulach 2010-03-24 09:34:16 UTC
RequestProcessor180386Test constantly fails on my computer. One of the failing tests is at least marked as randomly failing, but the other is considered fine. Still fails all the time.


Testcase: testSomeTasksNotRunIfShutDown(org.openide.util.RequestProcessor180386Test):        FAILED
(RequestProcessor180386Test.testSomeTasksNotRunIfShutDown marked @RandomlyFails so try just running test again)
junit.framework.AssertionFailedError: (RequestProcessor180386Test.testSomeTasksNotRunIfShutDown marked @RandomlyFails so try just running test again)
        at org.openide.util.RequestProcessor180386Test.testSomeTasksNotRunIfShutDown(RequestProcessor180386Test.java:169)
        at org.netbeans.junit.NbTestCase.access$200(NbTestCase.java:89)
        at org.netbeans.junit.NbTestCase$2.doSomething(NbTestCase.java:345)
        at org.netbeans.junit.NbTestCase$1Guard.run(NbTestCase.java:274)
        at org.netbeans.junit.NbTestCase.runBare(NbTestCase.java:364)
        at org.netbeans.junit.NbTestCase.run(NbTestCase.java:214)


Testcase: testInvokeAnySingleThread(org.openide.util.RequestProcessor180386Test):        FAILED
Not all 1000 threads should have completed, but 1000 did.
junit.framework.AssertionFailedError: Not all 1000 threads should have completed, but 1000 did.
        at org.openide.util.RequestProcessor180386Test.testInvokeAnySingleThread(RequestProcessor180386Test.java:506)
        at org.netbeans.junit.NbTestCase.access$200(NbTestCase.java:89)
        at org.netbeans.junit.NbTestCase$2.doSomething(NbTestCase.java:345)
        at org.netbeans.junit.NbTestCase$1Guard.run(NbTestCase.java:274)
        at org.netbeans.junit.NbTestCase.runBare(NbTestCase.java:364)
        at org.netbeans.junit.NbTestCase.run(NbTestCase.java:214)


Test org.openide.util.RequestProcessor180386Test FAILED
Comment 1 _ tboudreau 2010-03-28 19:55:24 UTC
I was not able to reproduce either of these failures on Windows or Mac.  However, I have made some improvements that should help with possible corner-cases.  Try it now and reopen if necessary.

Fixed in main/ ee54144c6bff
Comment 2 Quality Engineering 2010-04-02 05:18:55 UTC
Integrated into 'main-golden', will be available in build *201004020200* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/ee54144c6bff
User: tboudreau@netbeans.org
Log: #182637 - random test failures in RequestProcessor180386Test - cannot reproduce all of them, but hopefully this will improve things