[jira] [Commented] (POOL-228) Unit test failure in TestGenericObjectPoolClassLoaders
[ https://issues.apache.org/jira/browse/POOL-228?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13426374#comment-13426374 ] Mark Thomas commented on POOL-228: -- No confusion here. I was looking at the 1.6.x code. Look at the code for the Evictor.run(). It calls ensureMinIdle(). You need to do some debugging to find out why that method isn't called / doesn't work on your system. There might be a timing problem with the test. Try increasing the length of the sleep. Unit test failure in TestGenericObjectPoolClassLoaders -- Key: POOL-228 URL: https://issues.apache.org/jira/browse/POOL-228 Project: Commons Pool Issue Type: Bug Affects Versions: 1.6 Reporter: Liviu Tudor Priority: Minor Labels: junit Fix For: 1.6.1 Following error encountered when running unit tests: {noformat} Results : Failed tests: testContextClassLoader(org.apache.commons.pool.impl.TestGenericObjectPoolClassLoaders): Wrong number of idle objects in pool1 expected:1 but was:0 Tests run: 263, Failures: 1, Errors: 0, Skipped: 0 {noformat} -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (POOL-228) Unit test failure in TestGenericObjectPoolClassLoaders
[ https://issues.apache.org/jira/browse/POOL-228?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13426077#comment-13426077 ] Mark Thomas commented on POOL-228: -- That test passes for me. Your analysis is wrong. ensureMinIdle() is a separate call to evict(). You need to do some more research to find out what is going wrong before proceeding. Unit test failure in TestGenericObjectPoolClassLoaders -- Key: POOL-228 URL: https://issues.apache.org/jira/browse/POOL-228 Project: Commons Pool Issue Type: Bug Affects Versions: 1.6 Reporter: Liviu Tudor Priority: Minor Labels: junit Fix For: 1.6.1 Following error encountered when running unit tests: {noformat} Results : Failed tests: testContextClassLoader(org.apache.commons.pool.impl.TestGenericObjectPoolClassLoaders): Wrong number of idle objects in pool1 expected:1 but was:0 Tests run: 263, Failures: 1, Errors: 0, Skipped: 0 {noformat} -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (POOL-228) Unit test failure in TestGenericObjectPoolClassLoaders
[ https://issues.apache.org/jira/browse/POOL-228?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13426087#comment-13426087 ] Liviu Tudor commented on POOL-228: -- h ok this is weird then. I constantly keep getting this test to fail both from command line as well as from Eclipse so I don't think it's an environment setup. Does the test pass in the CI environment? Unit test failure in TestGenericObjectPoolClassLoaders -- Key: POOL-228 URL: https://issues.apache.org/jira/browse/POOL-228 Project: Commons Pool Issue Type: Bug Affects Versions: 1.6 Reporter: Liviu Tudor Priority: Minor Labels: junit Fix For: 1.6.1 Following error encountered when running unit tests: {noformat} Results : Failed tests: testContextClassLoader(org.apache.commons.pool.impl.TestGenericObjectPoolClassLoaders): Wrong number of idle objects in pool1 expected:1 but was:0 Tests run: 263, Failures: 1, Errors: 0, Skipped: 0 {noformat} -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (POOL-228) Unit test failure in TestGenericObjectPoolClassLoaders
[ https://issues.apache.org/jira/browse/POOL-228?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13426141#comment-13426141 ] Liviu Tudor commented on POOL-228: -- Mark, I just realised there might be a bit of confusion here -- I'm talking about pool-1.6 here -- haven't checked yet the pool2 (trunk) branch. on this branch, {{setMinIdle}} calls {{allocate()}} which bails out if {{_pool}} is empty so doesn't do in fact anything. There is no call to {{evict()}} (in fact that is only called from the eviction timer task). Did you check this on the 1.6 branch too or were you referring to pool2? Unit test failure in TestGenericObjectPoolClassLoaders -- Key: POOL-228 URL: https://issues.apache.org/jira/browse/POOL-228 Project: Commons Pool Issue Type: Bug Affects Versions: 1.6 Reporter: Liviu Tudor Priority: Minor Labels: junit Fix For: 1.6.1 Following error encountered when running unit tests: {noformat} Results : Failed tests: testContextClassLoader(org.apache.commons.pool.impl.TestGenericObjectPoolClassLoaders): Wrong number of idle objects in pool1 expected:1 but was:0 Tests run: 263, Failures: 1, Errors: 0, Skipped: 0 {noformat} -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira