Openbravo Issue Tracking System - Openbravo ERP |
View Issue Details |
|
ID | Project | Category | View Status | Date Submitted | Last Update |
0013665 | Openbravo ERP | A. Platform | public | 2010-06-15 17:44 | 2023-03-22 01:40 |
|
Reporter | shuehner | |
Assigned To | AugustoMauch | |
Priority | normal | Severity | minor | Reproducibility | have not tried |
Status | closed | Resolution | fixed | |
Platform | | OS | 5 | OS Version | |
Product Version | pi | |
Target Version | | Fixed in Version | 3.0MP16 | |
Merge Request Status | |
Review Assigned To | dbaz |
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 | 0013665: When disabling heartbeat, the process for sending beats is only unscheduled in running tomcat, butrunning again after tomcat res |
Description | tart.
The code for disabling heartbeat does not modify the process_request to update its status (or delete the request). It only unschedules it in the currently running scheduler (inside the currently running tomcat).
This means that the process will be running again after you restart tomcat, however as the ad_system_info flag is set to heartbeat disabled this process will not really send beat.
-> priority: minor
As just wrong local behavior but not functional problem (as no beats get send after disabling it) |
Steps To Reproduce | Check code in TestHearbeat servlet around line 111
The pr instance (process request) is read from the db, then not modified, then saved....
|
Proposed Solution | |
Additional Information | |
Tags | No tags attached. |
Relationships | related to | defect | 0018214 | | closed | alostale | Scheduled processes executed on tomcat restart |
|
Attached Files | |
|
Issue History |
Date Modified | Username | Field | Change |
2010-06-15 17:44 | shuehner | New Issue | |
2010-06-15 17:44 | shuehner | Assigned To | => alostale |
2010-06-15 17:44 | shuehner | OBNetwork customer | => No |
2010-06-15 18:38 | shuehner | Note Added: 0028459 | |
2010-06-23 10:41 | alostale | Status | new => scheduled |
2011-11-16 17:26 | alostale | Relationship added | related to 0018214 |
2012-09-19 16:18 | AugustoMauch | Closed by | => alostale |
2012-09-19 16:20 | AugustoMauch | Note Added: 0052230 | |
2012-09-19 16:20 | AugustoMauch | Issue Monitored: alostale | |
2012-09-19 16:22 | hgbot | Checkin | |
2012-09-19 16:22 | hgbot | Note Added: 0052231 | |
2012-09-19 16:22 | hgbot | Status | scheduled => resolved |
2012-09-19 16:22 | hgbot | Resolution | open => fixed |
2012-09-19 16:22 | hgbot | Fixed in SCM revision | => http://code.openbravo.com/erp/devel/pi/rev/d9a38ada2c86d12ca540e1401734cf0b98ccfc9b [^] |
2012-09-26 11:52 | AugustoMauch | Assigned To | alostale => AugustoMauch |
2012-09-26 11:52 | AugustoMauch | Note Added: 0052616 | |
2012-09-26 11:52 | AugustoMauch | Status | resolved => new |
2012-09-26 11:52 | AugustoMauch | Resolution | fixed => open |
2012-09-26 11:52 | AugustoMauch | Closed by | alostale => dbaz |
2012-09-26 11:52 | AugustoMauch | Status | new => scheduled |
2012-09-26 11:52 | AugustoMauch | Status | scheduled => resolved |
2012-09-26 11:52 | AugustoMauch | Resolution | open => fixed |
2012-09-26 17:20 | hudsonbot | Checkin | |
2012-09-26 17:20 | hudsonbot | Note Added: 0052787 | |
2012-09-26 17:52 | dbaz | Note Added: 0052805 | |
2012-09-26 17:52 | dbaz | Status | resolved => closed |
2012-09-26 17:52 | dbaz | Fixed in Version | => 3.0MP16 |
2023-03-22 01:40 | kitftfy | Note Added: 0147790 | |
2023-03-22 09:30 | shuehner | Note Deleted: 0147790 | |
Notes |
|
|
Updated info from testing this behavior. The process_request does get modified to status unscheduled somehow (perhaps by the scheduler itself). However in that case the
OBDal.getInstance().save(pr);
in TestHearbeat line 111 seems to be useless. |
|
|
|
Test plan:
Check that after the change it has not changed the way heartbeat is unscheduled:
- Check that heartbeat is scheduled in the Process Request window
- Open the Heartbeat Configuration window and disable heartbeat.
- Go back to the Process Request window, and check that heartbeat status is unscheduled.
- Go back to Heartbeat Configuration and enable heartbeat again.
- In the Process Request window, check that heartbeat status is scheduled again. |
|
|
(0052231)
|
hgbot
|
2012-09-19 16:22
|
|
Repository: erp/devel/pi
Changeset: d9a38ada2c86d12ca540e1401734cf0b98ccfc9b
Author: Augusto Mauch <augusto.mauch <at> openbravo.com>
Date: Wed Sep 19 16:17:34 2012 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/d9a38ada2c86d12ca540e1401734cf0b98ccfc9b [^]
Fixes issue 13665: Remove unnecessary DAL save
When heartbeat is disabled, the process request is fetched with DAL, and used to unschedule the process. The process request itself it is not explicitly modified, so there is no need to save it.
---
M src/org/openbravo/erpCommon/ad_process/TestHeartbeat.java
---
|
|
|
|
Reopened to change Closed by field |
|
|
|
|
|
(0052805)
|
dbaz
|
2012-09-26 17:52
|
|
Reviewed @ changeset: 18052 - 8a0aed9bd90d |
|