Openbravo Issue Tracking System - Openbravo ERP |
View Issue Details |
|
ID | Project | Category | View Status | Date Submitted | Last Update |
0035634 | Openbravo ERP | Y. DBSourceManager | public | 2017-03-28 16:41 | 2017-04-01 12:06 |
|
Reporter | caristu | |
Assigned To | caristu | |
Priority | high | Severity | minor | Reproducibility | always |
Status | closed | Resolution | fixed | |
Platform | | OS | 5 | OS Version | |
Product Version | | |
Target Version | | Fixed in Version | 3.0PR17Q2 | |
Merge Request Status | |
Review Assigned To | alostale |
OBNetwork customer | No |
Web browser | |
Modules | Core |
Support ticket | |
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. |
Proposed Solution | |
Additional Information | |
Tags | No tags attached. |
Relationships | caused by | feature request | 0034654 | 3.0PR17Q2 | closed | alostale | some performance improvements in DBSM tasks |
|
Attached Files | testIssue35634.diff (17,858) 2017-03-28 16:42 https://issues.openbravo.com/file_download.php?file_id=10613&type=bug |
|
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 | OBNetwork customer | => No |
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 | bug_revision_view_page.php?rev_id=14906#r14906 |
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 | |
Notes |
|
(0095619)
|
hgbot
|
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
|
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
|
2017-03-29 09:16
|
|
|
|
|
|
|
|
|
|
(0095745)
|
hgbot
|
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
|
2017-03-31 09:22
|
|
|
|
|
|
|
(0095751)
|
hgbot
|
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
|
2017-03-31 10:25
|
|
|
|
|
|
|
|
|