Project:
View Issue Details[ Jump to Notes ] | [ Issue History ] [ Print ] | ||||||||||
ID | |||||||||||
0033770 | |||||||||||
Type | Category | Severity | Reproducibility | Date Submitted | Last Update | ||||||
defect | [Openbravo ERP] A. Platform | minor | have not tried | 2016-08-23 17:01 | 2022-02-01 08:05 | ||||||
Reporter | shuehner | View Status | public | ||||||||
Assigned To | Triage Platform Base | ||||||||||
Priority | high | Resolution | open | Fixed in Version | |||||||
Status | acknowledged | Fix in branch | Fixed in SCM revision | ||||||||
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 | |||||||||||
Web browser | |||||||||||
Modules | Core | ||||||||||
Regression level | |||||||||||
Regression date | |||||||||||
Regression introduced in release | |||||||||||
Regression introduced by commit | |||||||||||
Triggers an Emergency Pack | No | ||||||||||
Summary | 0033770: ModuleManagement install from local obx triggers accidental 4* load of ad_module_dependency | ||||||||||
Description | The flow of installing packs from local obx file looks for ad_module_dependency information in the local database. That code calls .list() 4 times on the same OBCriteria instances running the sql query 4 times which should be avoided. | ||||||||||
Steps To Reproduce | Use debugging code from: https://issues.openbravo.com/view.php?id=33767 [^] And follow flow of ci job int-dummy-pgsql. Following local hack is sufficient to produce the issue. Download latest org.openbravo.v3 module ci test obx from forge (i.e. minor version 29874 Edit local version to be 29874-1 for core module + org.openbravo.v3 module in database run export.database to work around 'local changes' check in mmc Now in MMC install from local file pointing to downloaded v3 obx Observe the extra .list() calls with the debugging code mentioned above. | ||||||||||
Tags | Performance | ||||||||||
Attached Files | 33770.diff [^] (1,257 bytes) 2016-08-23 17:03 [Show Content] | ||||||||||
Relationships [ Relation Graph ] [ Dependency Graph ] | ||||||||
|
Notes | |
(0089314) shuehner (administrator) 2016-08-23 17:03 |
Extra notes: - There is no unique constraint in db on the combination of filters used in the query - No limit is set in the query - no ordering is set in the query - but code only uses .get(0) result So assuming multiple result rows for that filter are possible the result is undefined (random ordering as per sql spec when not specifying order by in the query) |
Issue History | |||
Date Modified | Username | Field | Change |
2016-08-23 17:01 | shuehner | New Issue | |
2016-08-23 17:01 | shuehner | Assigned To | => platform |
2016-08-23 17:01 | shuehner | Modules | => Core |
2016-08-23 17:01 | shuehner | Triggers an Emergency Pack | => No |
2016-08-23 17:03 | shuehner | Note Added: 0089314 | |
2016-08-23 17:03 | shuehner | Relationship added | related to 0033767 |
2016-08-23 17:03 | shuehner | File Added: 33770.diff | |
2016-08-23 17:10 | shuehner | Tag Attached: Performance | |
2016-08-29 09:20 | alostale | Status | new => acknowledged |
2016-12-01 14:05 | alostale | Priority | normal => urgent |
2016-12-01 14:05 | alostale | Priority | urgent => high |
2022-02-01 08:05 | alostale | Assigned To | platform => Triage Platform Base |
Copyright © 2000 - 2009 MantisBT Group |