tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject DO NOT REPLY [Bug 47583] New: Fix occasional test failure in TestConcurrency
Date Sun, 26 Jul 2009 13:43:31 GMT

           Summary: Fix occasional test failure in TestConcurrency
           Product: Tomcat 7
           Version: trunk
          Platform: PC
        OS/Version: Windows XP
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Modules: jdbc-pool

Created an attachment (id=24039)
 --> (
Sample test run showing failures

TestConcurrency exhibits occasional failures - about 10% in my tests - which
appear to be due to a startup timing issue.

This can be fixed by replacing:

assertEquals("Size comparison:",10, ds.getPool().getSize());
assertTrue("Size comparison(less than 11):",ds.getPool().getSize()<=10);

in the testSimple() method (as has been done for the other test methods in the

See attached files for some sample failures.

N.B. the test output indicates either no failures or two failures.
This suggests that the failure in testSimple() may be affecting a subsequent
test, i.e. there may be a problem with the test cleanup.
Perhaps Driver.reset(); should be done after ds.close() - or even after

Configure bugmail:
------- You are receiving this mail because: -------
You are the assignee for the bug.

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message