Anonymous | Login
Project:
RSS
  
News | My View | View Issues | Roadmap | Summary

View Issue DetailsJump to Notes ] Issue History ] Print ]
ID
0036291
TypeCategorySeverityReproducibilityDate SubmittedLast Update
design defect[Openbravo ERP] A. Platformminorhave not tried2017-06-20 10:432022-02-01 08:08
ReporteralostaleView Statuspublic 
Assigned ToTriage Platform Base 
PrioritynormalResolutionopenFixed in Version
StatusacknowledgedFix in branchFixed in SCM revision
ProjectionnoneETAnoneTarget Version
OSAnyDatabaseAnyJava version
OS VersionDatabase versionAnt version
Product VersionSCM revision 
Review Assigned To
Web browser
ModulesCore
Regression level
Regression date
Regression introduced in release
Regression introduced by commit
Triggers an Emergency PackNo
Summary

0036291: even not configured, RO pool uses a different pool instance

DescriptionWhen OBDal.getReadOnlyInstance() is used to get the read only pool, even if read only pool is not configured, a new instance of pool is created. As consequence of this, read only queries are always performed in a different connection.
Steps To Reproduce1. Install DB Pool log module
2. Configure Openbravo.properties to log threads borrowing more than one connection:
     db.pool.logger.enabled=true
     db.pool.logger.logMultipleConnectionsPerThread=true
3. Login
  -check Utility.getImageLogoObject uses two connections because it uses read only pool
Proposed SolutionTo decide whether this is the wanted behavior.

Pros: it makes more consistent the behavior when read only pool is configured and when it is not, in both cases 2 independent connections are used.
Cons: 2 connections are used when 1 might be enough
TagsNo tags attached.
Attached Files

- Relationships Relation Graph ] Dependency Graph ]
related to feature request 0034816 closedcaristu Support a second database for reporting 
related to defect 0035855 closedalostale many standard requests borrow more than one connection from DB 
related to defect 0037055 closedcaristu Connection leak in threads that makes use of the read only pool and are not encapsulated inside DalThreadHandler  

-  Notes
There are no notes attached to this issue.

- Issue History
Date Modified Username Field Change
2017-06-20 10:43 alostale New Issue
2017-06-20 10:43 alostale Assigned To => platform
2017-06-20 10:43 alostale Modules => Core
2017-06-20 10:43 alostale Triggers an Emergency Pack => No
2017-06-20 10:43 alostale Relationship added related to 0034816
2017-06-20 10:44 alostale Status new => acknowledged
2017-06-20 10:45 alostale Relationship added related to 0035855
2017-10-11 14:17 caristu Relationship added related to 0037055
2022-02-01 08:08 alostale Assigned To platform => Triage Platform Base


Copyright © 2000 - 2009 MantisBT Group
Powered by Mantis Bugtracker