Project:
View Issue Details[ Jump to Notes ] | [ Issue History ] [ Print ] | |||||||
ID | ||||||||
0035634 | ||||||||
Type | Category | Severity | Reproducibility | Date Submitted | Last Update | |||
defect | [Openbravo ERP] Y. DBSourceManager | minor | always | 2017-03-28 16:41 | 2017-04-01 12:06 | |||
Reporter | caristu | View Status | public | |||||
Assigned To | caristu | |||||||
Priority | high | Resolution | fixed | Fixed in Version | 3.0PR17Q2 | |||
Status | closed | Fix in branch | Fixed in SCM revision | 555bede6abb1 | ||||
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 | alostale | |||||||
Web browser | ||||||||
Modules | Core | |||||||
Regression level | Pre packaging ( pi ) | |||||||
Regression date | 2017-11-01 | |||||||
Regression introduced in release | pi | |||||||
Regression introduced by commit | http://code.openbravo.com/erp/devel/pi/rev/47c768943f70d1c674cb0a2701faf29edde3da84 [^] | |||||||
Triggers an Emergency Pack | No | |||||||
Summary | 0035634: The generation of indexes in parallel fails under some circumstances | |||||||
Description | The generation of indexes in parallel fails if the maximum number of active connections configured for the database pool is lower than the number of indexes to be added on existing tables. | |||||||
Steps To Reproduce | 1) Execute the attached test. It fails with the following error: org.apache.ddlutils.DatabaseOperationException - Could not get a connection from the datasource org.apache.commons.dbcp.SQLNestedException: Cannot get a connection, pool exhausted at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:103) Notice that if the MAX_ACTIVE_CONNECTIONS would be higher or equals than 3 (the number of new indexes added to existing tables within the test) the test is executed successfully. | |||||||
Tags | No tags attached. | |||||||
Attached Files | testIssue35634.diff [^] (17,858 bytes) 2017-03-28 16:42 [Show Content] | |||||||
Relationships [ Relation Graph ] [ Dependency Graph ] | ||||||||
|
Notes | |
(0095619) hgbot (developer) 2017-03-29 09:15 |
Repository: erp/devel/dbsm-main Changeset: 555bede6abb1fe0abd4f7ccb29c16d694778eb54 Author: Carlos Aristu <carlos.aristu <at> openbravo.com> Date: Wed Mar 29 09:13:33 2017 +0200 URL: http://code.openbravo.com/erp/devel/dbsm-main/rev/555bede6abb1fe0abd4f7ccb29c16d694778eb54 [^] fixes issue 35634: Index generation in parallel fails under some circumstances This problem can be reproduced when the number of max active connections of the pool used in DBSM is lower than the number of database connections retrieved in parallel to complete a task (currently the only task that performs queries in parallel is the creation of indexes on existing tables). In order to prevent this problem, now the update.database and export.database tasks increase the number of active connections supported by the pool with a safe value: having one thread and the default max active connections (8) it was working fine, therefore we now set the max active connections for those tasks to the number of threads multiplied by 8. --- M src/org/openbravo/ddlutils/task/AlterDatabaseDataAll.java M src/org/openbravo/ddlutils/task/ExportDatabase.java --- |
(0095620) hgbot (developer) 2017-03-29 09:15 |
Repository: erp/devel/dbsm-main Changeset: 177b065cc30f915990c490530af0666cc766ef6b Author: Carlos Aristu <carlos.aristu <at> openbravo.com> Date: Wed Mar 29 09:14:14 2017 +0200 URL: http://code.openbravo.com/erp/devel/dbsm-main/rev/177b065cc30f915990c490530af0666cc766ef6b [^] related to issue 35634: Added test case --- M src-test/src/org/openbravo/dbsm/test/base/DbsmTest.java M src-test/src/org/openbravo/dbsm/test/model/ModelSuite.java A src-test/model/indexes/BASE_MODEL_FOUR_COLUMNS.xml A src-test/model/indexes/THREE_INDEXES.xml A src-test/src/org/openbravo/dbsm/test/model/IndexParallelization.java --- |
(0095621) hgbot (developer) 2017-03-29 09:16 |
Repository: erp/devel/pi Changeset: 8e2360637c673d0c973e56a8a2a32365c93e415d Author: Carlos Aristu <carlos.aristu <at> openbravo.com> Date: Wed Mar 29 09:15:58 2017 +0200 URL: http://code.openbravo.com/erp/devel/pi/rev/8e2360637c673d0c973e56a8a2a32365c93e415d [^] related to issue 35634: Updated DBSM library --- M src-db/database/lib/dbsourcemanager.jar --- |
(0095653) hudsonbot (developer) 2017-03-29 15:06 |
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/f901bb68d428 [^] Maturity status: Test |
(0095743) alostale (manager) 2017-03-31 09:01 |
Found minor cosmetic issues in review: https://docs.google.com/spreadsheets/d/18l2biKWeG6iGDIPqO6VuYQ_TtP_6YxyQU4KSrPvQlJ8/edit#gid=0 [^] |
(0095745) hgbot (developer) 2017-03-31 09:14 |
Repository: erp/devel/dbsm-main Changeset: 50c5c91e5d8d467e24d6a421b02e5646ffce9257 Author: Carlos Aristu <carlos.aristu <at> openbravo.com> Date: Fri Mar 31 09:13:59 2017 +0200 URL: http://code.openbravo.com/erp/devel/dbsm-main/rev/50c5c91e5d8d467e24d6a421b02e5646ffce9257 [^] related to bug 35634: removed redundant if clause, reduced log message to debug --- M src-test/src/org/openbravo/dbsm/test/base/DbsmTest.java M src/org/openbravo/ddlutils/task/AlterDatabaseDataAll.java M src/org/openbravo/ddlutils/task/ExportDatabase.java --- |
(0095746) hgbot (developer) 2017-03-31 09:22 |
Repository: erp/devel/pi Changeset: 6c833a1c6320532e251b930b391645b6d2cf86b9 Author: Carlos Aristu <carlos.aristu <at> openbravo.com> Date: Fri Mar 31 09:21:19 2017 +0200 URL: http://code.openbravo.com/erp/devel/pi/rev/6c833a1c6320532e251b930b391645b6d2cf86b9 [^] related to bug 35634: updated DBSM library with code review improvements --- M src-db/database/lib/dbsourcemanager.jar --- |
(0095748) alostale (manager) 2017-03-31 09:40 |
code reviewed + tested |
(0095751) hgbot (developer) 2017-03-31 10:19 |
Repository: erp/devel/dbsm-main Changeset: f5fc17d3752472414982ac5fc8002f05e0e80d24 Author: Carlos Aristu <carlos.aristu <at> openbravo.com> Date: Fri Mar 31 10:18:38 2017 +0200 URL: http://code.openbravo.com/erp/devel/dbsm-main/rev/f5fc17d3752472414982ac5fc8002f05e0e80d24 [^] related to bug 35634: centralize set of max active connections in setMaxThreads --- M src-test/src/org/openbravo/dbsm/test/base/DbsmTest.java M src/org/apache/ddlutils/platform/PlatformImplBase.java M src/org/openbravo/ddlutils/task/AlterDatabaseDataAll.java M src/org/openbravo/ddlutils/task/ExportDatabase.java --- |
(0095752) hgbot (developer) 2017-03-31 10:25 |
Repository: erp/devel/pi Changeset: 91233525974fafeed358e7ebf0829aace6e0cc46 Author: Carlos Aristu <carlos.aristu <at> openbravo.com> Date: Fri Mar 31 10:24:51 2017 +0200 URL: http://code.openbravo.com/erp/devel/pi/rev/91233525974fafeed358e7ebf0829aace6e0cc46 [^] related to bug 35634: updated DBSM library with code review improvements --- M src-db/database/lib/dbsourcemanager.jar --- |
(0095772) hudsonbot (developer) 2017-03-31 15:11 |
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/2fc0a768a178 [^] Maturity status: Test |
(0095778) hudsonbot (developer) 2017-04-01 12:06 |
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/44185ff76d75 [^] Maturity status: Test |
Issue History | |||
Date Modified | Username | Field | Change |
2017-03-28 16:41 | caristu | New Issue | |
2017-03-28 16:41 | caristu | Assigned To | => platform |
2017-03-28 16:41 | caristu | Modules | => Core |
2017-03-28 16:41 | caristu | Triggers an Emergency Pack | => No |
2017-03-28 16:42 | caristu | File Added: testIssue35634.diff | |
2017-03-28 16:43 | caristu | Relationship added | caused by 0034654 |
2017-03-28 17:01 | caristu | Regression level | => Pre packaging ( pi ) |
2017-03-28 17:01 | caristu | Regression date | => 2017-11-01 |
2017-03-28 17:01 | caristu | Regression introduced in release | => pi |
2017-03-28 17:01 | caristu | Regression introduced by commit | => http://code.openbravo.com/erp/devel/pi/rev/47c768943f70d1c674cb0a2701faf29edde3da84 [^] |
2017-03-28 17:02 | caristu | Steps to Reproduce Updated | View Revisions |
2017-03-28 19:22 | caristu | Assigned To | platform => caristu |
2017-03-28 19:23 | caristu | Status | new => scheduled |
2017-03-29 09:15 | hgbot | Checkin | |
2017-03-29 09:15 | hgbot | Note Added: 0095619 | |
2017-03-29 09:15 | hgbot | Status | scheduled => resolved |
2017-03-29 09:15 | hgbot | Resolution | open => fixed |
2017-03-29 09:15 | hgbot | Fixed in SCM revision | => http://code.openbravo.com/erp/devel/dbsm-main/rev/555bede6abb1fe0abd4f7ccb29c16d694778eb54 [^] |
2017-03-29 09:15 | hgbot | Checkin | |
2017-03-29 09:15 | hgbot | Note Added: 0095620 | |
2017-03-29 09:16 | hgbot | Checkin | |
2017-03-29 09:16 | hgbot | Note Added: 0095621 | |
2017-03-29 09:19 | caristu | Review Assigned To | => alostale |
2017-03-29 15:06 | hudsonbot | Checkin | |
2017-03-29 15:06 | hudsonbot | Note Added: 0095653 | |
2017-03-31 09:01 | alostale | Note Added: 0095743 | |
2017-03-31 09:14 | hgbot | Checkin | |
2017-03-31 09:14 | hgbot | Note Added: 0095745 | |
2017-03-31 09:22 | hgbot | Checkin | |
2017-03-31 09:22 | hgbot | Note Added: 0095746 | |
2017-03-31 09:40 | alostale | Note Added: 0095748 | |
2017-03-31 09:40 | alostale | Status | resolved => closed |
2017-03-31 09:40 | alostale | Fixed in Version | => 3.0PR17Q2 |
2017-03-31 10:19 | hgbot | Checkin | |
2017-03-31 10:19 | hgbot | Note Added: 0095751 | |
2017-03-31 10:25 | hgbot | Checkin | |
2017-03-31 10:25 | hgbot | Note Added: 0095752 | |
2017-03-31 15:11 | hudsonbot | Checkin | |
2017-03-31 15:11 | hudsonbot | Note Added: 0095772 | |
2017-04-01 12:06 | hudsonbot | Checkin | |
2017-04-01 12:06 | hudsonbot | Note Added: 0095778 |
Copyright © 2000 - 2009 MantisBT Group |