Bug 1531005

Summary: (6.4.z) Pool.flush does not work correctly
Product: [JBoss] JBoss Enterprise Application Platform 6 Reporter: Jiří Bílek <jbilek>
Component: JCAAssignee: Flavia Rainone <frainone>
Status: CLOSED CURRENTRELEASE QA Contact: Jiří Bílek <jbilek>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 6.4.19CC: bmaxwell, cdewolf, dosoudil, jpederse, jtruhlar, msochure
Target Milestone: CR2   
Target Release: EAP 6.4.19   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-04-16 11:04:51 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1498153, 1533009    

Description Jiří Bílek 2018-01-04 12:15:17 UTC
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

Comment 7 Jiří Bílek 2018-01-16 12:37:43 UTC
Verified with EAP 6.4.19.CP.CR2