Openbravo Issue Tracking System - Openbravo ERP |
View Issue Details |
|
ID | Project | Category | View Status | Date Submitted | Last Update |
0023841 | Openbravo ERP | A. Platform | public | 2013-05-17 11:54 | 2013-06-27 10:41 |
|
Reporter | egoitz | |
Assigned To | AugustoMauch | |
Priority | immediate | Severity | major | Reproducibility | always |
Status | closed | Resolution | fixed | |
Platform | | OS | 5 | OS Version | |
Product Version | | |
Target Version | | Fixed in Version | 3.0MP24 | |
Merge Request Status | |
Review Assigned To | alostale |
OBNetwork customer | OBPS |
Web browser | |
Modules | Core |
Support ticket | |
Regression level | |
Regression date | |
Regression introduced in release | |
Regression introduced by commit | |
Triggers an Emergency Pack | No |
|
Summary | 0023841: ScrollableResults not being closed |
Description | ScrollableResults not being closed.
After use an scrollableresult object it is needed to close the object. It is done in same parts of the application but in other is not, and this causes cursors not being closed on oracle.
Classes where scrollableresults are not being closed:
CustomQuerySelectorDatasource
AcctSchemaEventHandler
ChildTabRecordCounterActionHandler
CostingMigrationProcess
CostingRuleProcess
DefaultJsonDataService
MRPManufacturingPlanProcess
MRPPurchaseCreateReservations
WindowTree
|
Steps To Reproduce | Un case is using the partner selector on sales order window.
After done serveral selections on the partner field on sales order window table you can check that there are many cursors open on v$open_cursos table on oracle. |
Proposed Solution | |
Additional Information | |
Tags | Performance |
Relationships | related to | defect | 0024484 | RMP27 | closed | marvintm | Retail Modules | Serveral scrollables not closed on retail module |
|
Attached Files | |
|
Issue History |
Date Modified | Username | Field | Change |
2013-05-17 11:54 | egoitz | New Issue | |
2013-05-17 11:54 | egoitz | Assigned To | => AugustoMauch |
2013-05-17 11:54 | egoitz | Modules | => Core |
2013-05-17 11:54 | egoitz | OBNetwork customer | => Yes |
2013-05-17 11:54 | egoitz | Triggers an Emergency Pack | => No |
2013-05-17 13:03 | AugustoMauch | Tag Attached: Performance | |
2013-05-17 13:54 | AugustoMauch | Issue Monitored: alostale | |
2013-05-17 13:54 | AugustoMauch | Review Assigned To | => alostale |
2013-05-17 14:00 | hgbot | Checkin | |
2013-05-17 14:00 | hgbot | Note Added: 0058683 | |
2013-05-17 14:00 | hgbot | Status | new => resolved |
2013-05-17 14:00 | hgbot | Resolution | open => fixed |
2013-05-17 14:00 | hgbot | Fixed in SCM revision | => http://code.openbravo.com/erp/devel/pi/rev/f7e6400fa814a23d5c4507810a65d6840ca9046a [^] |
2013-05-20 16:44 | alostale | Note Added: 0058702 | |
2013-05-20 16:44 | alostale | Status | resolved => new |
2013-05-20 16:44 | alostale | Resolution | fixed => open |
2013-05-23 01:33 | hudsonbot | Checkin | |
2013-05-23 01:33 | hudsonbot | Note Added: 0058828 | |
2013-05-30 11:46 | hgbot | Checkin | |
2013-05-30 11:46 | hgbot | Note Added: 0059064 | |
2013-05-30 11:46 | hgbot | Status | new => resolved |
2013-05-30 11:46 | hgbot | Resolution | open => fixed |
2013-05-30 11:46 | hgbot | Fixed in SCM revision | http://code.openbravo.com/erp/devel/pi/rev/f7e6400fa814a23d5c4507810a65d6840ca9046a [^] => http://code.openbravo.com/erp/devel/pi/rev/8a7979c5a247a8e75ff7722a4b8f81358e57060d [^] |
2013-06-01 02:14 | hudsonbot | Checkin | |
2013-06-01 02:14 | hudsonbot | Note Added: 0059104 | |
2013-06-03 08:29 | alostale | Note Added: 0059120 | |
2013-06-03 08:29 | alostale | Status | resolved => closed |
2013-06-03 08:29 | alostale | Fixed in Version | => 3.0MP24 |
2013-06-27 10:33 | gorkaion | Note Added: 0059692 | |
2013-06-27 10:41 | AugustoMauch | Note Added: 0059694 | |
2013-08-05 14:49 | egoitz | Relationship added | related to 0024484 |
Notes |
|
(0058683)
|
hgbot
|
2013-05-17 14:00
|
|
Repository: erp/devel/pi
Changeset: f7e6400fa814a23d5c4507810a65d6840ca9046a
Author: Augusto Mauch <augusto.mauch <at> openbravo.com>
Date: Fri May 17 13:59:18 2013 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/f7e6400fa814a23d5c4507810a65d6840ca9046a [^]
Fixes issue 23841: ScrollableResults objects are closed after being used
---
M modules/org.openbravo.client.application/src/org/openbravo/client/application/event/AcctSchemaEventHandler.java
M modules/org.openbravo.service.json/src/org/openbravo/service/json/DefaultJsonDataService.java
M modules/org.openbravo.userinterface.selector/src/org/openbravo/userinterface/selector/CustomQuerySelectorDatasource.java
M src/org/openbravo/costing/CostingMigrationProcess.java
M src/org/openbravo/costing/CostingRuleProcess.java
M src/org/openbravo/erpCommon/ad_actionButton/MRPManufacturingPlanProcess.java
M src/org/openbravo/erpCommon/ad_process/MRPPurchaseCreateReservations.java
M src/org/openbravo/erpCommon/utility/WindowTree.java
---
|
|
|
|
Reopening after code review:
Closing same scroller twice:
7.16 + outgoingRLs.close();
7.17 + outgoingRLs.close();
Closing should be within finally statements |
|
|
|
|
|
(0059064)
|
hgbot
|
2013-05-30 11:46
|
|
Repository: erp/devel/pi
Changeset: 8a7979c5a247a8e75ff7722a4b8f81358e57060d
Author: Augusto Mauch <augusto.mauch <at> openbravo.com>
Date: Thu May 30 11:45:18 2013 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/8a7979c5a247a8e75ff7722a4b8f81358e57060d [^]
Fixes issue 23841: Fixed duplicated close, close are done in finally blocks
---
M modules/org.openbravo.client.application/src/org/openbravo/client/application/event/AcctSchemaEventHandler.java
M modules/org.openbravo.service.json/src/org/openbravo/service/json/DefaultJsonDataService.java
M modules/org.openbravo.userinterface.selector/src/org/openbravo/userinterface/selector/CustomQuerySelectorDatasource.java
M src/org/openbravo/costing/CostingMigrationProcess.java
M src/org/openbravo/costing/CostingRuleProcess.java
M src/org/openbravo/erpCommon/ad_actionButton/MRPManufacturingPlanProcess.java
M src/org/openbravo/erpCommon/ad_process/MRPPurchaseCreateReservations.java
M src/org/openbravo/erpCommon/utility/WindowTree.java
---
|
|
|
|
|
|
|
Code reviewed.
Tested in Oracle before and after the fix. For example, each time BP selector combo was opened before the fix, a new cursor was opened, now the number keeps stable. |
|
|
|
|
|
|
Done, thanks for the advice. |
|