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

View Issue DetailsJump to Notes ] Issue History ] Print ]
ID
0030181
TypeCategorySeverityReproducibilityDate SubmittedLast Update
defect[Openbravo ERP] A. Platformminorhave not tried2015-06-15 14:252022-02-01 08:05
ReportershuehnerView 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

0030181: Every Modulescript executes creates own new connectionpool which are never properly closed

DescriptionEveryModuleScript does creates a entirely new ConnectionPool (via calling getConnectionProvider) which are never closed.

So during exection of i.e. update.database many connection pool equal to number of ModuleScripts are created and never closed

Note: end of java process will close them.

However that behavior does not make any sense and is just wrong.
Steps To Reproduceread src-core/src/org/openbravo/modulescript/ModuleScript.java source or add some debugging to i.e. constructor of ConnectionProviderImpl

Proposed SolutionOne option maybe would be to make
1.) cp variable in ModuleScript static
2.) maybe close that single pool and end of 'execute' of ModuleScriptHandler

That way all would share single pool and close this pool properly.

Note: need to think of side-effects of that static first to check if that is a viable option.
TagsNo tags attached.
Attached Files

- Relationships Relation Graph ] Dependency Graph ]

-  Notes
There are no notes attached to this issue.

- Issue History
Date Modified Username Field Change
2015-06-15 14:25 shuehner New Issue
2015-06-15 14:25 shuehner Assigned To => platform
2015-06-15 14:25 shuehner Modules => Core
2015-06-15 14:25 shuehner Triggers an Emergency Pack => No
2015-06-16 11:49 alostale Status new => acknowledged
2022-02-01 08:05 alostale Assigned To platform => Triage Platform Base


Copyright © 2000 - 2009 MantisBT Group
Powered by Mantis Bugtracker