Openbravo Issue Tracking System - Openbravo ERP | |||||||||||||||||||
View Issue Details | |||||||||||||||||||
ID | Project | Category | View Status | Date Submitted | Last Update | ||||||||||||||
0040152 | Openbravo ERP | A. Platform | public | 2019-02-05 18:12 | 2019-03-28 14:56 | ||||||||||||||
Reporter | caristu | ||||||||||||||||||
Assigned To | caristu | ||||||||||||||||||
Priority | immediate | Severity | minor | Reproducibility | have not tried | ||||||||||||||
Status | closed | Resolution | fixed | ||||||||||||||||
Platform | OS | 5 | OS Version | ||||||||||||||||
Product Version | |||||||||||||||||||
Target Version | Fixed in Version | 3.0PR19Q2 | |||||||||||||||||
Merge Request Status | |||||||||||||||||||
Review Assigned To | alostale | ||||||||||||||||||
OBNetwork customer | |||||||||||||||||||
Web browser | |||||||||||||||||||
Modules | Core | ||||||||||||||||||
Support ticket | |||||||||||||||||||
Regression level | Pre packaging ( pi ) | ||||||||||||||||||
Regression date | 2019-01-31 | ||||||||||||||||||
Regression introduced in release | pi | ||||||||||||||||||
Regression introduced by commit | https://code.openbravo.com/erp/devel/pi/rev/aaa984886667a027a8c99692447febe6e4ca7707 [^] | ||||||||||||||||||
Triggers an Emergency Pack | No | ||||||||||||||||||
Summary | 0040152: export.database is slower after defining it as a forked task | ||||||||||||||||||
Description | The fix for issue 0040047 set the export.database as a forked task. After introducing this change this task has become slower. This is caused because now a different XML parser is used for reading the XML files that define the database model. (See attached images of the export.database profiling before and after the fix). Note that the current XML parser factory implementation is org.apache.xerces.jaxp.SAXParserFactoryImpl which is present in the classpath because of the xercesImpl.jar[1] [1] https://code.openbravo.com/erp/devel/pi/file/tip/lib/runtime/xercesImpl.jar [^] | ||||||||||||||||||
Steps To Reproduce | Prepare two clean environments: a) revision: 35384 b) revision: 35385 [1] 1) In both environments, set all modules in "in development" status and run ant export.database. 2) Check the time spent for the task is higher in environment "b". [1] https://code.openbravo.com/erp/devel/pi/rev/aaa984886667a027a8c99692447febe6e4ca7707 [^] | ||||||||||||||||||
Proposed Solution | Use the same SAXParserFactory[1] that was being used before issue 0040047. There are two possible solutions: a) Exclude xercesImpl.jar from the classpath used by the task b) Define a system property in the task to explicitly force the use of the SAXParserFactory implementation being used before: <sysproperty key="javax.xml.parsers.SAXParserFactory" value="com.sun.org.apache.xerces.internal.jaxp.SAXParserFactoryImpl" /> [1] https://docs.oracle.com/javase/8/docs/api/javax/xml/parsers/SAXParserFactory.html#newInstance-- [^] | ||||||||||||||||||
Additional Information | |||||||||||||||||||
Tags | No tags attached. | ||||||||||||||||||
Relationships |
| ||||||||||||||||||
Attached Files | before40047.png (123,234) 2019-02-05 18:15 https://issues.openbravo.com/file_download.php?file_id=12624&type=bug after40047.png (125,054) 2019-02-05 18:15 https://issues.openbravo.com/file_download.php?file_id=12625&type=bug | ||||||||||||||||||
Issue History | |||||||||||||||||||
Date Modified | Username | Field | Change | ||||||||||||||||
2019-02-05 18:12 | caristu | New Issue | |||||||||||||||||
2019-02-05 18:12 | caristu | Assigned To | => caristu | ||||||||||||||||
2019-02-05 18:12 | caristu | Modules | => Core | ||||||||||||||||
2019-02-05 18:12 | caristu | Triggers an Emergency Pack | => No | ||||||||||||||||
2019-02-05 18:15 | caristu | File Added: before40047.png | |||||||||||||||||
2019-02-05 18:15 | caristu | File Added: after40047.png | |||||||||||||||||
2019-02-05 18:16 | caristu | Relationship added | caused by 0040047 | ||||||||||||||||
2019-02-05 18:16 | caristu | Regression level | => Pre packaging ( pi ) | ||||||||||||||||
2019-02-05 18:16 | caristu | Regression date | => 2019-01-31 | ||||||||||||||||
2019-02-05 18:16 | caristu | Regression introduced in release | => pi | ||||||||||||||||
2019-02-05 18:16 | caristu | Regression introduced by commit | => https://code.openbravo.com/erp/devel/pi/rev/aaa984886667a027a8c99692447febe6e4ca7707 [^] | ||||||||||||||||
2019-02-05 19:10 | caristu | Status | new => scheduled | ||||||||||||||||
2019-02-06 10:47 | caristu | Review Assigned To | => alostale | ||||||||||||||||
2019-02-06 12:31 | hgbot | Checkin | |||||||||||||||||
2019-02-06 12:31 | hgbot | Note Added: 0109626 | |||||||||||||||||
2019-02-06 12:31 | hgbot | Status | scheduled => resolved | ||||||||||||||||
2019-02-06 12:31 | hgbot | Resolution | open => fixed | ||||||||||||||||
2019-02-06 12:31 | hgbot | Fixed in SCM revision | => http://code.openbravo.com/erp/devel/pi/rev/26f426646dc81e7839700507dec84ad5f3931dc0 [^] | ||||||||||||||||
2019-02-06 16:10 | caristu | Issue cloned | 0040163 | ||||||||||||||||
2019-02-06 16:10 | caristu | Relationship added | related to 0040163 | ||||||||||||||||
2019-02-06 16:14 | caristu | Description Updated | bug_revision_view_page.php?rev_id=18284#r18284 | ||||||||||||||||
2019-02-06 16:15 | caristu | Description Updated | bug_revision_view_page.php?rev_id=18285#r18285 | ||||||||||||||||
2019-02-06 16:25 | caristu | Description Updated | bug_revision_view_page.php?rev_id=18290#r18290 | ||||||||||||||||
2019-02-06 16:25 | caristu | Proposed Solution updated | |||||||||||||||||
2019-02-11 14:13 | alostale | Note Added: 0109669 | |||||||||||||||||
2019-02-11 14:13 | alostale | Status | resolved => closed | ||||||||||||||||
2019-02-11 14:13 | alostale | Fixed in Version | => 3.0PR19Q2 | ||||||||||||||||
2019-03-28 14:56 | hudsonbot | Checkin | |||||||||||||||||
2019-03-28 14:56 | hudsonbot | Note Added: 0110800 |
Notes | |||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|