Openbravo Issue Tracking System - Openbravo ERP |
View Issue Details |
|
ID | Project | Category | View Status | Date Submitted | Last Update |
0020040 | Openbravo ERP | A. Platform | public | 2012-03-15 17:29 | 2012-04-02 12:16 |
|
Reporter | marvintm | |
Assigned To | marvintm | |
Priority | immediate | Severity | critical | Reproducibility | always |
Status | closed | Resolution | fixed | |
Platform | | OS | 5 | OS Version | |
Product Version | | |
Target Version | 3.0MP9 | Fixed in Version | 3.0MP9 | |
Merge Request Status | |
Review Assigned To | |
OBNetwork customer | No |
Web browser | |
Modules | Core |
Support ticket | |
Regression level | |
Regression date | |
Regression introduced in release | |
Regression introduced by commit | |
Triggers an Emergency Pack | No |
|
Summary | 0020040: The alert process creates a non-finishing transaction, thus blocking the Rebuild process |
Description | The alert process currently leaves the DAL transaction as non-committed. Several tables are locked because of this. Therefore, any Rebuild attempted after the alert process has run (and issued alerts) is blocked at some point. |
Steps To Reproduce | - Do ant install.source in current pi.
- Start tomcat. As the alerts process is now automatically scheduled, some alerts will be created (and therefore the process will also attempt to send emails).
- This creates a non-finishing transaction. You can notice this by executing the following command in the database:
select * from pg_stat_activity
- Any rebuild attempted after this will get stuck. |
Proposed Solution | The DAL connection in the AlertProcess needs to be committed before the process ends. |
Additional Information | |
Tags | No tags attached. |
Relationships | |
Attached Files | |
|
Issue History |
Date Modified | Username | Field | Change |
2012-03-15 17:29 | marvintm | New Issue | |
2012-03-15 17:29 | marvintm | Assigned To | => marvintm |
2012-03-15 17:29 | marvintm | Modules | => Core |
2012-03-15 17:29 | marvintm | OBNetwork customer | => No |
2012-03-15 17:37 | hgbot | Checkin | |
2012-03-15 17:37 | hgbot | Note Added: 0046472 | |
2012-03-15 17:37 | hgbot | Status | new => resolved |
2012-03-15 17:37 | hgbot | Resolution | open => fixed |
2012-03-15 17:37 | hgbot | Fixed in SCM revision | => http://code.openbravo.com/erp/devel/pi/rev/89452d415b9034fe02e161dfb76d53cfc6208046 [^] |
2012-03-15 18:28 | marvintm | Note Added: 0046477 | |
2012-03-15 18:35 | AugustoMauch | Note Added: 0046478 | |
2012-03-15 18:35 | AugustoMauch | Status | resolved => closed |
2012-03-15 18:35 | AugustoMauch | Fixed in Version | => 3.0MP9 |
2012-04-01 20:33 | hgbot | Checkin | |
2012-04-01 20:33 | hgbot | Note Added: 0047012 | |
2012-04-01 20:33 | hgbot | Status | closed => resolved |
2012-04-01 20:33 | hgbot | Fixed in SCM revision | http://code.openbravo.com/erp/devel/pi/rev/89452d415b9034fe02e161dfb76d53cfc6208046 [^] => http://code.openbravo.com/erp/devel/pi/rev/e0024666eff862dc643620d9fa7c693d875f1741 [^] |
2012-04-02 06:10 | hudsonbot | Checkin | |
2012-04-02 06:10 | hudsonbot | Note Added: 0047152 | |
2012-04-02 12:16 | gorka_gil | Note Added: 0047300 | |
2012-04-02 12:16 | gorka_gil | Status | resolved => closed |
Notes |
|
(0046472)
|
hgbot
|
2012-03-15 17:37
|
|
Repository: erp/devel/pi
Changeset: 89452d415b9034fe02e161dfb76d53cfc6208046
Author: Antonio Moreno <antonio.moreno <at> openbravo.com>
Date: Thu Mar 15 17:36:41 2012 +0100
URL: http://code.openbravo.com/erp/devel/pi/rev/89452d415b9034fe02e161dfb76d53cfc6208046 [^]
Fixed issue 20040. The DAL connection wil be committed so that the execution of the AlertProcess doesn't create a non-finishing transaction
---
M src/org/openbravo/erpCommon/ad_process/AlertProcess.java
---
|
|
|
|
Test plan:
* Test that exporting views still works in PostgreSQL and Oracle, and that views with LIKE statements are exported correctly.
* Test that update.database correctly creates views with LIKE statements. |
|
|
|
Code reviewed and verified.
Test made:
- Install.source in current pi. After it was finished, there were no non-finishing transactions in the database.
- Install a module.
- Execute ant update.database. The task finished without errors. |
|
|
(0047012)
|
hgbot
|
2012-04-01 20:33
|
|
Repository: erp/devel/pi
Changeset: e0024666eff862dc643620d9fa7c693d875f1741
Author: Antonio Moreno <antonio.moreno <at> openbravo.com>
Date: Thu Mar 15 17:36:41 2012 +0100
URL: http://code.openbravo.com/erp/devel/pi/rev/e0024666eff862dc643620d9fa7c693d875f1741 [^]
Fixed issue 20040. The DAL connection wil be committed so that the execution of the AlertProcess doesn't create a non-finishing transaction
---
M src/org/openbravo/erpCommon/ad_process/AlertProcess.java
---
|
|
|
|
|
|
|
|