Openbravo Issue Tracking System - Openbravo ERP |
View Issue Details |
|
ID | Project | Category | View Status | Date Submitted | Last Update |
0030891 | Openbravo ERP | A. Platform | public | 2015-09-22 17:27 | 2015-11-23 21:16 |
|
Reporter | ioritzCia | |
Assigned To | alostale | |
Priority | urgent | Severity | major | Reproducibility | always |
Status | closed | Resolution | fixed | |
Platform | | OS | 30 | OS Version | Ubuntu 14.04 |
Product Version | | |
Target Version | 3.0PR16Q1 | Fixed in Version | 3.0PR16Q1 | |
Merge Request Status | |
Review Assigned To | caristu |
OBNetwork customer | |
Web browser | Google Chrome |
Modules | Core |
Support ticket | |
Regression level | |
Regression date | |
Regression introduced in release | |
Regression introduced by commit | |
Triggers an Emergency Pack | No |
|
Summary | 0030891: Xsql files parser does not release statement for callable statements |
Description | The parser that generates a xxxxxData.java from a xxxxx_data.xsql file does not release the statement for Callable Statements.
This is making WebPOS not work properly in Oracle with high volume of transactions as it opens cursors very fast and it does not close them.
Important: This issue reported previously that the java generated did not close the connection. This happens in getStock method but it is not due to a bug. But a bad use of the method definition in the xsql.
Having connection="true" in the xsql definition of a method tells the parser that the connection will be handled by the developer later and not automatically closed by the xxxxxData.java file generated. |
Steps To Reproduce | Go to StockUtilData.java file.
See select method:
It is a Prepared Statement.
Releases the statement in the finally -> connectionProvider.releasePreparedStatement(st);
See getStock method:
It is a Callable Statement.
It does not release the statement. |
Proposed Solution | The parser should write the code to release the statement. |
Additional Information | |
Tags | Performance |
Relationships | related to | defect | 0031366 | | closed | alostale | 2 tests failing in try-ret-checks-oracle |
|
Attached Files | |
|
Issue History |
Date Modified | Username | Field | Change |
2015-09-22 17:27 | ioritzCia | New Issue | |
2015-09-22 17:27 | ioritzCia | Assigned To | => platform |
2015-09-22 17:27 | ioritzCia | Web browser | => Google Chrome |
2015-09-22 17:27 | ioritzCia | Modules | => Core |
2015-09-22 17:27 | ioritzCia | Triggers an Emergency Pack | => No |
2015-09-22 17:49 | ioritzCia | Web browser | Google Chrome => Google Chrome |
2015-09-22 17:49 | ioritzCia | Target Version | => 3.0PR15Q4 |
2015-09-23 10:04 | alostale | Status | new => acknowledged |
2015-09-23 10:04 | alostale | Tag Attached: Performance | |
2015-09-24 10:40 | ioritzCia | Web browser | Google Chrome => Google Chrome |
2015-09-24 10:40 | ioritzCia | Summary | Xsql files parser does not close connection and release statement for callable statements => Xsql files parser does not release statement for callable statements |
2015-09-24 10:40 | ioritzCia | Description Updated | bug_revision_view_page.php?rev_id=9466#r9466 |
2015-09-24 10:40 | ioritzCia | Steps to Reproduce Updated | bug_revision_view_page.php?rev_id=9468#r9468 |
2015-09-24 10:40 | ioritzCia | Proposed Solution updated | |
2015-09-29 12:29 | alostale | Target Version | 3.0PR15Q4 => 3.0PR16Q1 |
2015-10-29 17:16 | egoitz | Web browser | Google Chrome => Google Chrome |
2015-10-29 17:16 | egoitz | Resolution time | => 1446678000 |
2015-10-29 17:18 | egoitz | Issue Monitored: egoitz | |
2015-10-30 07:50 | alostale | Assigned To | platform => alostale |
2015-10-30 07:50 | alostale | Status | acknowledged => scheduled |
2015-11-02 13:38 | hgbot | Checkin | |
2015-11-02 13:38 | hgbot | Note Added: 0081438 | |
2015-11-02 13:38 | hgbot | Status | scheduled => resolved |
2015-11-02 13:38 | hgbot | Resolution | open => fixed |
2015-11-02 13:38 | hgbot | Fixed in SCM revision | => http://code.openbravo.com/erp/devel/pi/rev/4eceadac7f74a09ffa771900c4f3a5a1403d97e8 [^] |
2015-11-02 13:38 | alostale | Review Assigned To | => caristu |
2015-11-02 13:38 | alostale | Web browser | Google Chrome => Google Chrome |
2015-11-02 13:38 | alostale | Status | resolved => scheduled |
2015-11-02 13:38 | alostale | Resolution | fixed => open |
2015-11-02 13:38 | alostale | Fixed in SCM revision | http://code.openbravo.com/erp/devel/pi/rev/4eceadac7f74a09ffa771900c4f3a5a1403d97e8 [^] => |
2015-11-02 13:38 | hgbot | Checkin | |
2015-11-02 13:38 | hgbot | Note Added: 0081439 | |
2015-11-02 13:39 | hgbot | Checkin | |
2015-11-02 13:39 | hgbot | Note Added: 0081440 | |
2015-11-02 13:39 | hgbot | Checkin | |
2015-11-02 13:39 | hgbot | Note Added: 0081441 | |
2015-11-02 13:39 | alostale | Status | scheduled => resolved |
2015-11-02 13:39 | alostale | Fixed in SCM revision | => http://code.openbravo.com/erp/devel/pi/rev/4eceadac7f74a09ffa771900c4f3a5a1403d97e8 [^] |
2015-11-02 13:39 | alostale | Resolution | open => fixed |
2015-11-04 09:08 | caristu | Note Added: 0081463 | |
2015-11-04 09:08 | caristu | Status | resolved => closed |
2015-11-04 09:08 | caristu | Fixed in Version | => 3.0PR16Q1 |
2015-11-05 10:08 | alostale | Relationship added | related to 0031366 |
2015-11-23 21:16 | hudsonbot | Checkin | |
2015-11-23 21:16 | hudsonbot | Note Added: 0082166 | |
2015-11-23 21:16 | hudsonbot | Checkin | |
2015-11-23 21:16 | hudsonbot | Note Added: 0082167 | |
2015-11-23 21:16 | hudsonbot | Checkin | |
2015-11-23 21:16 | hudsonbot | Note Added: 0082168 | |
2015-11-23 21:16 | hudsonbot | Checkin | |
2015-11-23 21:16 | hudsonbot | Note Added: 0082169 | |
Notes |
|
(0081438)
|
hgbot
|
2015-11-02 13:38
|
|
Repository: erp/devel/pi
Changeset: 4eceadac7f74a09ffa771900c4f3a5a1403d97e8
Author: Asier Lostalé <asier.lostale <at> openbravo.com>
Date: Fri Oct 30 11:22:17 2015 +0100
URL: http://code.openbravo.com/erp/devel/pi/rev/4eceadac7f74a09ffa771900c4f3a5a1403d97e8 [^]
fixed bug 30891: sqlc transactional callable statemts not released in Oracle
Working with Oracle transactional callable statements are not closed after
invokation, causing the number of open cursors to increase unnecessarily.
There was already code in sqlc to release the statement, but there was an
extra incorrect check not to do it in case of callable when in transactional
mode.
This check has been removed, being now transactional and non transactional cases
handled in the same way.
---
M src-core/src/org/openbravo/data/Sqlc.java
---
|
|
|
(0081439)
|
hgbot
|
2015-11-02 13:38
|
|
Repository: erp/devel/pi
Changeset: bf8fd604e551b5a9721840bc445689d6a0940db7
Author: Asier Lostalé <asier.lostale <at> openbravo.com>
Date: Fri Oct 30 11:41:50 2015 +0100
URL: http://code.openbravo.com/erp/devel/pi/rev/bf8fd604e551b5a9721840bc445689d6a0940db7 [^]
related to bug 30891: added test case
---
M src-test/src/org/openbravo/test/AntTaskTests.java
A src-test/src/org/openbravo/test/db/model/functions/SqlCallableStatement.java
---
|
|
|
(0081440)
|
hgbot
|
2015-11-02 13:39
|
|
|
|
(0081441)
|
hgbot
|
2015-11-02 13:39
|
|
|
|
|
Code review + Tested OK
Now when setting connection="false" or not defining this parameter on transactional callable statements, the release statement (connectionProvider.releasePreparedStatement(st)) is included in the generated file. |
|
|
|
|
|
|
|
|
|
|
|
|
|