Openbravo Issue Tracking System - Openbravo ERP |
View Issue Details |
|
ID | Project | Category | View Status | Date Submitted | Last Update |
0034453 | Openbravo ERP | A. Platform | public | 2016-11-09 15:08 | 2016-12-16 18:39 |
|
Reporter | inigosanchez | |
Assigned To | inigosanchez | |
Priority | high | Severity | minor | Reproducibility | have not tried |
Status | closed | Resolution | fixed | |
Platform | | OS | 5 | OS Version | |
Product Version | | |
Target Version | | Fixed in Version | 3.0PR17Q1 | |
Merge Request Status | |
Review Assigned To | caristu |
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 | 0034453: transaction is leaked if HeartbeatProcess fails |
Description | If HeartbeatProcess fails in a specific part of the execute method and the beat type is "SCHEDULED_BEAT", a require explicit commit is not done. See this code here[1].
The problem have found in CDS enviroment. In this enviroment HeartbeatProcess fails (status: ERR) for a unknown reason. [See attached HeartbeatProcessErrorLog file] Then the commit is not done and a transaction is opened for hours.
[1].- https://code.openbravo.com/erp/devel/pi/file/e0bcd0b2606d/src/org/openbravo/erpCommon/ad_process/HeartbeatProcess.java#l156 [^] |
Steps To Reproduce | Ask ALopetegui for enviroment |
Proposed Solution | Move this piece of code to finally block maybe is enough.
|
Additional Information | |
Tags | No tags attached. |
Relationships | related to | defect | 0029622 | | closed | jarmendariz | The heartbeat background process fails if the ad_session table is empty |
|
Attached Files | HeartbeatProcessErrorLog (4,204) 2016-12-16 13:17 https://issues.openbravo.com/file_download.php?file_id=10185&type=bug |
|
Issue History |
Date Modified | Username | Field | Change |
2016-11-09 15:08 | inigosanchez | New Issue | |
2016-11-09 15:08 | inigosanchez | Assigned To | => iciordia |
2016-11-09 15:08 | inigosanchez | OBNetwork customer | => No |
2016-11-09 15:08 | inigosanchez | Modules | => Core |
2016-11-09 15:08 | inigosanchez | Triggers an Emergency Pack | => No |
2016-11-09 15:11 | inigosanchez | Assigned To | iciordia => platform |
2016-11-09 15:12 | inigosanchez | Issue Monitored: ALopetegui | |
2016-12-01 12:53 | alostale | Summary | If HeartbeatProcess fails a require explicit commit couldn't be execute => transaction is leaked if HeartbeatProcess fails |
2016-12-01 12:53 | alostale | Status | new => acknowledged |
2016-12-01 13:20 | alostale | Priority | low => normal |
2016-12-01 14:03 | alostale | Priority | normal => high |
2016-12-15 15:23 | inigosanchez | Assigned To | platform => inigosanchez |
2016-12-15 15:23 | inigosanchez | Status | acknowledged => scheduled |
2016-12-15 16:48 | hgbot | Checkin | |
2016-12-15 16:48 | hgbot | Note Added: 0092420 | |
2016-12-15 16:48 | hgbot | Status | scheduled => resolved |
2016-12-15 16:48 | hgbot | Resolution | open => fixed |
2016-12-15 16:48 | hgbot | Fixed in SCM revision | => http://code.openbravo.com/erp/devel/pi/rev/31a1cfd3b0aef7ee4905acda5e680ba935124e7b [^] |
2016-12-15 16:48 | inigosanchez | Review Assigned To | => caristu |
2016-12-16 12:40 | caristu | Relationship added | related to 0029622 |
2016-12-16 12:55 | caristu | Note Added: 0092483 | |
2016-12-16 12:55 | caristu | Status | resolved => new |
2016-12-16 12:55 | caristu | Resolution | fixed => open |
2016-12-16 13:14 | inigosanchez | Status | new => scheduled |
2016-12-16 13:17 | inigosanchez | Description Updated | bug_revision_view_page.php?rev_id=14036#r14036 |
2016-12-16 13:17 | inigosanchez | File Added: HeartbeatProcessErrorLog | |
2016-12-16 13:25 | hgbot | Checkin | |
2016-12-16 13:25 | hgbot | Note Added: 0092494 | |
2016-12-16 13:26 | inigosanchez | Status | scheduled => resolved |
2016-12-16 13:26 | inigosanchez | Resolution | open => fixed |
2016-12-16 13:55 | caristu | Note Added: 0092498 | |
2016-12-16 13:55 | caristu | Status | resolved => closed |
2016-12-16 13:55 | caristu | Fixed in Version | => 3.0PR17Q1 |
2016-12-16 18:39 | hudsonbot | Checkin | |
2016-12-16 18:39 | hudsonbot | Note Added: 0092722 | |
2016-12-16 18:39 | hudsonbot | Checkin | |
2016-12-16 18:39 | hudsonbot | Note Added: 0092728 | |
Notes |
|
(0092420)
|
hgbot
|
2016-12-15 16:48
|
|
Repository: erp/devel/pi
Changeset: 31a1cfd3b0aef7ee4905acda5e680ba935124e7b
Author: Inigo Sanchez <inigo.sanchez <at> openbravo.com>
Date: Thu Dec 15 16:45:04 2016 +0100
URL: http://code.openbravo.com/erp/devel/pi/rev/31a1cfd3b0aef7ee4905acda5e680ba935124e7b [^]
Fixed issue 34453: transaction is leaked if HeartbeatProcess fails.
If HeartbeatProcess fails in a specific part of the execute method and
the beat type is "SCHEDULED_BEAT", the require explicit commit is not done.
Now, a require explicit commit is done in finally blocks in order to ensures
that always is executed.
---
M src/org/openbravo/erpCommon/ad_process/HeartbeatProcess.java
---
|
|
|
|
|
|
(0092494)
|
hgbot
|
2016-12-16 13:25
|
|
|
|
|
|
|
|
|
|
|
|