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

View Issue DetailsJump to Notes ] Issue History ] Print ]
ID
0028817
TypeCategorySeverityReproducibilityDate SubmittedLast Update
defect[Openbravo ERP] 09. Financial managementmajoralways2015-01-30 09:462015-03-03 16:09
ReporteregoitzView Statuspublic 
Assigned Toaferraz 
PriorityurgentResolutionfixedFixed in Versionpi
StatusclosedFix in branchFixed in SCM revision694b153db283
ProjectionnoneETAnoneTarget Version
OSAnyDatabaseAnyJava version
OS VersionDatabase versionAnt version
Product VersionSCM revision 
Review Assigned Toumartirena
Web browser
ModulesCore
Regression level
Regression date
Regression introduced in release
Regression introduced by commit
Triggers an Emergency PackNo
Summary

0028817: OutOfMemory Importing bank statement using the generic csv importer.

DescriptionOutOfMemory Importing bank statement using the generic csv importer.
Steps To Reproduce-On an environment with many partners try to import a csv with 4000 lines.

*Support have an available environment to test that.
Proposed Solution-Instead of using a OBCriteria use a Query to use arryas instead of DAL objects what reduces the memory usage.
TagsPerformance
Attached Filesdiff file icon ImportPerformance.diff [^] (7,165 bytes) 2015-01-30 09:47 [Show Content]
csv file icon Bankstatement.csv [^] (308,676 bytes) 2015-02-12 23:15

- Relationships Relation Graph ] Dependency Graph ]

-  Notes
(0074444)
reinaldoguerra (developer)
2015-02-12 23:14

Test plan used:
1- Login into Openbravo ERP
2- As system administrator go to module management window and install CSV Generic Bank Statement Importer module.
3- Rebuild the system
4- Login into Openbravo ERP again
5- Go to Enterprise Module Management window and install CSV Generic Bank Statement Importer reference data
6- Go to Financial account window and select "Bank - Account 1" for F&B US organization
7- Go to Imported Bank Statement tab and click on Import Statement button
8- Select a csv file with 4000 lines and select Generic CSV importer when uploading the file
9- The process is completed and the lines are inserted successfuly

NOTE: Attached is a example csv file with more than 4000 lines referencing existent and not existent business partners.
(0075088)
hgbot (developer)
2015-03-02 14:16

Repository: erp/devel/pi
Changeset: 694b153db283507d4f512af28ccbb86bba8bfeee
Author: Alvaro Ferraz <alvaro.ferraz <at> openbravo.com>
Date: Fri Feb 20 09:46:32 2015 +0100
URL: http://code.openbravo.com/erp/devel/pi/rev/694b153db283507d4f512af28ccbb86bba8bfeee [^]

Fixes issue 28817: OutOfMemory importing bank statement using the csv importer

ScrollableResults object, used to scrolls OBQuery of business partners when importing bank statements, was directly closed to release resources, between each line's iteration of the csv file. This change avoids the memory overusing, so now it is possible to import a csv file with 4000 lines or more. Also, OBCriteria has been changed into Query in order to use arryas instead of DAL objects what reduces the memory usage.

---
M modules/org.openbravo.advpaymentmngt/src/org/openbravo/advpaymentmngt/utility/FIN_BankStatementImport.java
---
(0075089)
umartirena (reporter)
2015-03-02 14:17

Code Review + Testing OK
(0075123)
hudsonbot (developer)
2015-03-03 16:09

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/f4fc528722d4 [^]
Maturity status: Test

- Issue History
Date Modified Username Field Change
2015-01-30 09:46 egoitz New Issue
2015-01-30 09:46 egoitz Assigned To => dmiguelez
2015-01-30 09:46 egoitz Modules => Core
2015-01-30 09:46 egoitz Resolution time => 1425078000
2015-01-30 09:46 egoitz Triggers an Emergency Pack => No
2015-01-30 09:47 egoitz File Added: ImportPerformance.diff
2015-01-30 09:47 egoitz Assigned To dmiguelez => Sandrahuguet
2015-01-30 09:47 egoitz Tag Attached: Performance
2015-02-12 21:51 reinaldoguerra Assigned To Sandrahuguet => reinaldoguerra
2015-02-12 21:51 reinaldoguerra Status new => scheduled
2015-02-12 23:14 reinaldoguerra Note Added: 0074444
2015-02-12 23:15 reinaldoguerra File Added: Bankstatement.csv
2015-02-19 11:17 aferraz Assigned To reinaldoguerra => aferraz
2015-02-26 09:44 Sandrahuguet Review Assigned To => umartirena
2015-03-02 14:16 hgbot Checkin
2015-03-02 14:16 hgbot Note Added: 0075088
2015-03-02 14:16 hgbot Status scheduled => resolved
2015-03-02 14:16 hgbot Resolution open => fixed
2015-03-02 14:16 hgbot Fixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/694b153db283507d4f512af28ccbb86bba8bfeee [^]
2015-03-02 14:17 umartirena Note Added: 0075089
2015-03-02 14:17 umartirena Status resolved => closed
2015-03-02 14:17 umartirena Fixed in Version => pi
2015-03-03 16:09 hudsonbot Checkin
2015-03-03 16:09 hudsonbot Note Added: 0075123


Copyright © 2000 - 2009 MantisBT Group
Powered by Mantis Bugtracker