Project:
View Issue Details[ Jump to Notes ] | [ Issue History ] [ Print ] | |||||||
ID | ||||||||
0039659 | ||||||||
Type | Category | Severity | Reproducibility | Date Submitted | Last Update | |||
defect | [Openbravo ERP] A. Platform | minor | have not tried | 2018-11-20 18:06 | 2018-12-11 20:22 | |||
Reporter | caristu | View Status | public | |||||
Assigned To | caristu | |||||||
Priority | high | Resolution | fixed | Fixed in Version | 3.0PR19Q1 | |||
Status | closed | Fix in branch | Fixed in SCM revision | 65f68c63d325 | ||||
Projection | none | ETA | none | Target Version | ||||
OS | Any | Database | Any | Java version | ||||
OS Version | Database version | Ant version | ||||||
Product Version | SCM revision | |||||||
Merge Request Status | ||||||||
Review Assigned To | alostale | |||||||
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 | 0039659: Cluster Service Leader Registrator should be able to recover properly after restarting the database | |||||||
Description | The Cluster Service Leader Registrator thread is not recovering nicely after restarting the database. | |||||||
Steps To Reproduce | 1) Configure Openbravo.properties to enable the ClusterServiceManager: cluster=true 2) Start Openbravo 3) Stop the database (without stopping Tomcat). The following warning will appear in the log after a few seconds: [Cluster Service Leader Registrator] WARN org.openbravo.cluster.ClusterServiceManager - Node <nodeid> could not complete register/update 5) Restart the database. Note that the error continues 6) Check that the last ping is not being updated: select updated from ad_cluster_service; | |||||||
Tags | No tags attached. | |||||||
Attached Files | ||||||||
![]() |
|
![]() |
|
(0108028) hgbot (developer) 2018-11-21 10:33 |
Repository: erp/devel/pi Changeset: 65f68c63d325eeac390d2e93c0d2940e26412d30 Author: Carlos Aristu <carlos.aristu <at> openbravo.com> Date: Wed Nov 21 10:17:42 2018 +0100 URL: http://code.openbravo.com/erp/devel/pi/rev/65f68c63d325eeac390d2e93c0d2940e26412d30 [^] fixes bug 39659: ClusterServiceThread doesn't recover properly after DB restart Moved OBDal.getInstance().commitAndClose(); to a finally block in order to ensure that the connection is returned properly to the pool even if there is an error during the registering/update of the cluster service leader. Besides, in the finally block we are also forcing the cluster service to go to the database to check which node is the leader. Otherwise, in case of error it will be always checking against the ID of the leader that it keeps in cache. --- M src/org/openbravo/cluster/ClusterServiceManager.java --- |
(0108030) hgbot (developer) 2018-11-21 11:28 |
Repository: erp/devel/pi Changeset: 3d12a2f7f902a055da7d3511ef68cba643789095 Author: Carlos Aristu <carlos.aristu <at> openbravo.com> Date: Wed Nov 21 11:28:19 2018 +0100 URL: http://code.openbravo.com/erp/devel/pi/rev/3d12a2f7f902a055da7d3511ef68cba643789095 [^] related to issue 39659: improve log adding exception trace --- M src/org/openbravo/cluster/ClusterServiceManager.java --- |
(0108084) alostale (viewer) 2018-11-23 13:46 |
tested + reviewed |
(0108488) hudsonbot (viewer) 2018-12-11 20:22 |
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/470e3cd384c5 [^] Maturity status: Test |
(0108489) hudsonbot (viewer) 2018-12-11 20:22 |
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/470e3cd384c5 [^] Maturity status: Test |
![]() |
|||
Date Modified | Username | Field | Change |
2018-11-20 18:06 | caristu | New Issue | |
2018-11-20 18:06 | caristu | Assigned To | => platform |
2018-11-20 18:06 | caristu | OBNetwork customer | => No |
2018-11-20 18:06 | caristu | Modules | => Core |
2018-11-20 18:06 | caristu | Triggers an Emergency Pack | => No |
2018-11-20 18:06 | caristu | Assigned To | platform => caristu |
2018-11-20 18:07 | caristu | Steps to Reproduce Updated | View Revisions |
2018-11-20 18:07 | caristu | Steps to Reproduce Updated | View Revisions |
2018-11-20 18:07 | caristu | Steps to Reproduce Updated | View Revisions |
2018-11-21 10:33 | hgbot | Checkin | |
2018-11-21 10:33 | hgbot | Note Added: 0108028 | |
2018-11-21 10:33 | hgbot | Status | new => resolved |
2018-11-21 10:33 | hgbot | Resolution | open => fixed |
2018-11-21 10:33 | hgbot | Fixed in SCM revision | => http://code.openbravo.com/erp/devel/pi/rev/65f68c63d325eeac390d2e93c0d2940e26412d30 [^] |
2018-11-21 11:28 | hgbot | Checkin | |
2018-11-21 11:28 | hgbot | Note Added: 0108030 | |
2018-11-21 11:28 | caristu | Review Assigned To | => alostale |
2018-11-23 13:46 | alostale | Note Added: 0108084 | |
2018-11-23 13:46 | alostale | Status | resolved => closed |
2018-11-23 13:46 | alostale | Fixed in Version | => 3.0PR19Q1 |
2018-12-11 20:22 | hudsonbot | Checkin | |
2018-12-11 20:22 | hudsonbot | Note Added: 0108488 | |
2018-12-11 20:22 | hudsonbot | Checkin | |
2018-12-11 20:22 | hudsonbot | Note Added: 0108489 |
Copyright © 2000 - 2009 MantisBT Group |