Project:
View Issue Details[ Jump to Notes ] | [ Issue History ] [ Print ] | |||||||
ID | ||||||||
0036299 | ||||||||
Type | Category | Severity | Reproducibility | Date Submitted | Last Update | |||
defect | [Openbravo ERP] A. Platform | minor | have not tried | 2017-06-20 14:48 | 2017-06-26 19:40 | |||
Reporter | alostale | View Status | public | |||||
Assigned To | alostale | |||||||
Priority | normal | Resolution | fixed | Fixed in Version | 3.0PR17Q3 | |||
Status | closed | Fix in branch | Fixed in SCM revision | 78e81f76490d | ||||
Projection | none | ETA | none | Target Version | ||||
OS | Any | Database | Any | Java version | ||||
OS Version | Database version | Ant version | ||||||
Product Version | SCM revision | |||||||
Review Assigned To | caristu | |||||||
Web browser | ||||||||
Modules | Core | |||||||
Regression level | ||||||||
Regression date | ||||||||
Regression introduced in release | ||||||||
Regression introduced by commit | ||||||||
Triggers an Emergency Pack | No | |||||||
Summary | 0036299: many requests for standard 2.50 buttons borrow 2 connections | |||||||
Description | When a 2.50 style process is opened some requests are performed each of them borrowing 2 connections due to XmlEngine translation (see 0036293). | |||||||
Steps To Reproduce | 1. Install DB Pool log module [1] 2. Configure Openbravo.properties to log threads borrowing more than one connection: db.pool.logger.enabled=true db.pool.logger.logMultipleConnectionsPerThread=true 3. Select a Sales Order 4. Click on Book button -> check log (among others): d05203b3 7495224 [http-bio-8080-exec-4] WARN org.openbravo.util.db.DBPoolLogger - ***** Trying to get a connection in a thread that already has an active connection. org.openbravo.database.ConnectionProviderImpl.getNewConnection(ConnectionProviderImpl.java:260) org.openbravo.database.ConnectionProviderImpl.getConnection(ConnectionProviderImpl.java:236) org.openbravo.database.ConnectionProviderImpl.getPreparedStatement(ConnectionProviderImpl.java:369) org.openbravo.database.ConnectionProviderImpl.getPreparedStatement(ConnectionProviderImpl.java:361) org.openbravo.uiTranslation.TextInterfacesData.selectText(TextInterfacesData.java:107) org.openbravo.uiTranslation.TranslationUtils.retrieveLabelData(TranslationUtils.java:180) org.openbravo.uiTranslation.TranslationUtils.processFormLabels(TranslationUtils.java:33) org.openbravo.uiTranslation.TranslationHandler.processTranslations(TranslationHandler.java:216) d05203b3 7495224 [http-bio-8080-exec-4] WARN org.openbravo.util.db.DBPoolLogger - ** Listing other 1 active connections for this thread in addition to new PooledConnection[org.postgresql.jdbc.PgConnection@a09d66] ** d05203b3 7495225 [http-bio-8080-exec-4] WARN org.openbravo.util.db.DBPoolLogger - ===================== ACTIVE - Tue Jun 20 14:46:00 CEST 2017 - 1497962760375 - PooledConnection[org.postgresql.jdbc.PgConnection@1f86c68a] Thread: http-bio-8080-exec-4 org.openbravo.dal.core.SessionHandler.getNewConnection(SessionHandler.java:300) org.openbravo.dal.core.SessionHandler.createSession(SessionHandler.java:235) org.openbravo.dal.core.SessionHandler.begin(SessionHandler.java:561) org.openbravo.dal.core.SessionHandler.getSession(SessionHandler.java:183) org.openbravo.dal.service.OBDal.getConnection(OBDal.java:193) org.openbravo.service.db.DalConnectionProvider.getConnection(DalConnectionProvider.java:98) org.openbravo.service.db.DalConnectionProvider.getPreparedStatement(DalConnectionProvider.java:161) org.openbravo.base.secureApp.SeguridadData.loggedOK(SeguridadData.java:192) --- [1] http://centralrepository.openbravo.com/openbravo/org.openbravo.forge.ui/sso/ForgeModuleDetail/DB-Pool-Logging-Utilities [^] [^] [^] | |||||||
Proposed Solution | Those requests for components without visual representation can avoid to be tried to be translated by xmlEngine, in this way: - No extra connection will be borrowed - Some queries will be prevented | |||||||
Tags | Performance | |||||||
Attached Files | ||||||||
Relationships [ Relation Graph ] [ Dependency Graph ] | |||||||||||||||||||||||||||||
|
Notes | |
(0097512) hgbot (developer) 2017-06-20 14:53 |
Repository: erp/devel/pi Changeset: 3d998773a0858e157a07a72cc37994785179e4cf Author: Asier Lostalé <asier.lostale <at> openbravo.com> Date: Tue Jun 20 14:49:17 2017 +0200 URL: http://code.openbravo.com/erp/devel/pi/rev/3d998773a0858e157a07a72cc37994785179e4cf [^] fixed bug 36299: VerticalMenu.html borrows 2 connections Do not translate xmlEngine document in this way: - No extra connection is acquired - No need to execute extra DB queries --- M src/org/openbravo/erpCommon/utility/VerticalMenu.java --- |
(0097513) hgbot (developer) 2017-06-20 15:13 |
Repository: erp/devel/pi Changeset: 78e81f76490d85b73ae0cf9d3689e7a589d7014e Author: Asier Lostalé <asier.lostale <at> openbravo.com> Date: Tue Jun 20 15:13:00 2017 +0200 URL: http://code.openbravo.com/erp/devel/pi/rev/78e81f76490d85b73ae0cf9d3689e7a589d7014e [^] fixed bug 36299: do not translate frameset page --- M src-wad/src/org/openbravo/wad/javasource.javaxml --- |
(0097568) hudsonbot (developer) 2017-06-21 23:43 |
A changeset related to this issue has been promoted main and to the Central Repository, after passing a series of tests. Promotion changeset: https://code.openbravo.com/erp/devel/main/rev/5e0471c14ef8 [^] Maturity status: Test |
(0097569) hudsonbot (developer) 2017-06-21 23:43 |
A changeset related to this issue has been promoted main and to the Central Repository, after passing a series of tests. Promotion changeset: https://code.openbravo.com/erp/devel/main/rev/5e0471c14ef8 [^] Maturity status: Test |
(0097684) caristu (developer) 2017-06-26 19:40 |
Code reviewed + testing OK: the double connection for TranslationHandler.processTranslations is now not borrowed. |
Issue History | |||
Date Modified | Username | Field | Change |
2017-06-20 14:48 | alostale | New Issue | |
2017-06-20 14:48 | alostale | Assigned To | => platform |
2017-06-20 14:48 | alostale | Modules | => Core |
2017-06-20 14:48 | alostale | Triggers an Emergency Pack | => No |
2017-06-20 14:49 | alostale | Assigned To | platform => alostale |
2017-06-20 14:49 | alostale | Review Assigned To | => caristu |
2017-06-20 14:49 | alostale | Relationship added | related to 0035855 |
2017-06-20 14:50 | alostale | Relationship added | related to 0035386 |
2017-06-20 14:53 | hgbot | Checkin | |
2017-06-20 14:53 | hgbot | Note Added: 0097512 | |
2017-06-20 14:53 | hgbot | Status | new => resolved |
2017-06-20 14:53 | hgbot | Resolution | open => fixed |
2017-06-20 14:53 | hgbot | Fixed in SCM revision | => http://code.openbravo.com/erp/devel/pi/rev/3d998773a0858e157a07a72cc37994785179e4cf [^] |
2017-06-20 15:01 | alostale | Summary | VerticalMenu.html borrows 2 connections => many request for standard 2.50 buttons borrow 2 connections |
2017-06-20 15:01 | alostale | Description Updated | View Revisions |
2017-06-20 15:01 | alostale | Proposed Solution updated | |
2017-06-20 15:13 | hgbot | Checkin | |
2017-06-20 15:13 | hgbot | Note Added: 0097513 | |
2017-06-20 15:13 | hgbot | Fixed in SCM revision | http://code.openbravo.com/erp/devel/pi/rev/3d998773a0858e157a07a72cc37994785179e4cf [^] => http://code.openbravo.com/erp/devel/pi/rev/78e81f76490d85b73ae0cf9d3689e7a589d7014e [^] |
2017-06-20 15:38 | alostale | Tag Attached: Performance | |
2017-06-20 15:41 | alostale | Relationship added | related to 0036300 |
2017-06-20 15:57 | alostale | Summary | many request for standard 2.50 buttons borrow 2 connections => many requests for standard 2.50 buttons borrow 2 connections |
2017-06-21 23:43 | hudsonbot | Checkin | |
2017-06-21 23:43 | hudsonbot | Note Added: 0097568 | |
2017-06-21 23:43 | hudsonbot | Checkin | |
2017-06-21 23:43 | hudsonbot | Note Added: 0097569 | |
2017-06-26 19:40 | caristu | Note Added: 0097684 | |
2017-06-26 19:40 | caristu | Status | resolved => closed |
2017-06-26 19:40 | caristu | Fixed in Version | => 3.0PR17Q3 |
2017-06-27 08:34 | caristu | Relationship added | related to 0036352 |
Copyright © 2000 - 2009 MantisBT Group |