Description of problem: There is some leak in flushing of connections when is using Pool.flush. Version-Release number of selected component (if applicable): IronJacamar with version 1.0.40.Final How reproducible: 100% Steps to Reproduce: DataSource ds = getDataSource(); Pool pool = ds.getPool(); // create some connection pool.flush(true); // poolStatistics.getActiveCount() bigger than 0 Actual results: poolStatistics.getActiveCount() is bigger than 0 Expected results: poolStatistics.getActiveCount() should be equal to 0 Additional info: This is regression against EAP 6.4.18.CP Newly failing tests in ironjacamar testsuite: org.jboss.jca.core.connectionmanager.connections.InterleavingTestCase.testFailedEndTx org.jboss.jca.rhq.test.DsTestCase.testDsPoolFlush
Verified with EAP 6.4.19.CP.CR2