Project:
View Issue Details[ Jump to Notes ] | [ Issue History ] [ Print ] | |||||||
ID | ||||||||
0048653 | ||||||||
Type | Category | Severity | Reproducibility | Date Submitted | Last Update | |||
defect | [Openbravo ERP] A. Platform | major | have not tried | 2022-02-22 13:04 | 2022-03-07 14:23 | |||
Reporter | caristu | View Status | public | |||||
Assigned To | caristu | |||||||
Priority | immediate | Resolution | fixed | Fixed in Version | PR22Q2 | |||
Status | closed | Fix in branch | Fixed in SCM revision | |||||
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 | approved | |||||||
Review Assigned To | ||||||||
OBNetwork customer | No | |||||||
Web browser | ||||||||
Modules | Core | |||||||
Support ticket | ||||||||
Regression level | Pre packaging ( pi ) | |||||||
Regression date | 2022-01-21 | |||||||
Regression introduced in release | pi | |||||||
Regression introduced by commit | https://gitlab.com/openbravo/product/openbravo/-/commit/b257d40c2d528aeb2871e6a4b8c0afbab09e3e01 [^] | |||||||
Triggers an Emergency Pack | No | |||||||
Summary | 0048653: ExternalOrderLoader synchronous request can not be executed in non leader nodes | |||||||
Description | Being in a clustered environment, the synchronous requests to the ExternalOrderLoader can not be processed in non leader nodes. This was possible before the fix of issue 0048454. | |||||||
Steps To Reproduce | In a cluster instace (set cluster=true in Openbravo.properties) with several nodes 1. Execute an ExternalOrderLoader request to the non leader node. The following error appears: org.openbravo.base.exception.OBException: Import entry 8D2B4717636D49E986A09A4BDA01C1E7 could not be processed in node nodeb- EEA7BB04E8554401AB4B0FA4CB4FC722 because active node is nodea - 430BCEE7A3874B6F89D282B5B51F61C4 at org.openbravo.service.importprocess.ImportEntryManager.setImportEntryProcessed(ImportEntryManager.java:436) ~[classes/:?] at org.openbravo.service.importprocess.ImportEntryManager$Proxy$_$$_WeldClientProxy.setImportEntryProcessed(Unknown Source) ~[classes/:?] at org.openbravo.mobile.core.process.DataSynchronizationProcess.setImportEntryProcessed(DataSynchronizationProcess.java:361) ~[classes/:?] at org.openbravo.mobile.core.process.DataSynchronizationProcess.saveRecord(DataSynchronizationProcess.java:279) ~[classes/:?] at org.openbravo.mobile.core.process.DataSynchronizationProcess.exec(DataSynchronizationProcess.java:156) ~[classes/:?] at org.openbravo.retail.posterminal.ExternalOrderLoader.exec(ExternalOrderLoader.java:331) [classes/:?] at org.openbravo.mobile.core.process.DataSynchronizationProcess.exec(DataSynchronizationProcess.java:88) [classes/:?] at org.openbravo.retail.posterminal.ExternalOrderLoader.exec(ExternalOrderLoader.java:319) [classes/:?] at org.openbravo.mobile.core.process.JSONProcessSimple.exec(JSONProcessSimple.java:48) [classes/:?] at org.openbravo.retail.posterminal.ExternalOrderLoader.executeCreateImportEntry(ExternalOrderLoader.java:250) [classes/:?] | |||||||
Tags | NOR | |||||||
Attached Files | ||||||||
![]() |
||||||||
|
![]() |
|
(0135214) hgbot (developer) 2022-02-22 13:43 |
Merge Request created: https://gitlab.com/openbravo/product/openbravo/-/merge_requests/531 [^] |
(0135215) hgbot (developer) 2022-02-22 13:45 |
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal/-/merge_requests/726 [^] |
(0135233) hgbot (developer) 2022-02-22 14:53 |
Merge request closed: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal/-/merge_requests/726 [^] |
(0135262) hgbot (developer) 2022-02-24 07:17 |
Merge request merged: https://gitlab.com/openbravo/product/openbravo/-/merge_requests/531 [^] |
(0135263) hgbot (developer) 2022-02-24 07:17 |
Directly closing issue as related merge request is already approved. Repository: https://gitlab.com/openbravo/product/openbravo [^] Changeset: e2f4b08ad16a5b596f458d24056568e119e67d9d Author: Carlos Aristu <carlos.aristu@openbravo.com> Date: 23-02-2022 12:02:02 URL: https://gitlab.com/openbravo/product/openbravo/-/commit/e2f4b08ad16a5b596f458d24056568e119e67d9d [^] fixes ISSUE-48653: skip setImportEntryProcessed checks if invoked outside the IEM threads Improve the check that allows to set an import entry as processed. Now apart from checking if the current node is in charge of handling the import entries, it also checks if the thread setting the import entry status is one of the ImportEntryManager threads. This is done now to avoid failing if this code is invoked outside of the ImportEntryManager infrastructure, which is NOT recommended. In that case now the "setImportEntryProcessed" method will not fail if is executed in a node that is not the cluster leader. --- M src/org/openbravo/service/importprocess/ImportEntryManager.java --- |
![]() |
|||
Date Modified | Username | Field | Change |
2022-02-22 13:04 | caristu | New Issue | |
2022-02-22 13:04 | caristu | Assigned To | => caristu |
2022-02-22 13:04 | caristu | OBNetwork customer | => No |
2022-02-22 13:04 | caristu | Modules | => Core |
2022-02-22 13:04 | caristu | Regression level | => Pre packaging ( pi ) |
2022-02-22 13:04 | caristu | Regression date | => 2022-01-21 |
2022-02-22 13:04 | caristu | Regression introduced in release | => pi |
2022-02-22 13:04 | caristu | Regression introduced by commit | => https://gitlab.com/openbravo/product/openbravo/-/commit/b257d40c2d528aeb2871e6a4b8c0afbab09e3e01 [^] |
2022-02-22 13:04 | caristu | Triggers an Emergency Pack | => No |
2022-02-22 13:04 | caristu | Issue generated from | 0048454 |
2022-02-22 13:04 | caristu | Relationship added | caused by 0048454 |
2022-02-22 13:05 | caristu | Steps to Reproduce Updated | View Revisions |
2022-02-22 13:05 | caristu | Proposed Solution updated | |
2022-02-22 13:05 | caristu | Steps to Reproduce Updated | View Revisions |
2022-02-22 13:07 | rafaroda | Tag Attached: NOR | |
2022-02-22 13:07 | rafaroda | Issue Monitored: rafaroda | |
2022-02-22 13:43 | hgbot | Merge Request Status | => open |
2022-02-22 13:43 | hgbot | Note Added: 0135214 | |
2022-02-22 13:45 | hgbot | Note Added: 0135215 | |
2022-02-22 14:53 | hgbot | Note Added: 0135233 | |
2022-02-23 08:13 | caristu | Status | new => scheduled |
2022-02-24 07:17 | hgbot | Merge Request Status | open => approved |
2022-02-24 07:17 | hgbot | Note Added: 0135262 | |
2022-02-24 07:17 | hgbot | Resolution | open => fixed |
2022-02-24 07:17 | hgbot | Status | scheduled => closed |
2022-02-24 07:17 | hgbot | Fixed in Version | => PR22Q2 |
2022-02-24 07:17 | hgbot | Note Added: 0135263 | |
2022-03-07 14:23 | ivancaceres | Issue Monitored: ivancaceres |
Copyright © 2000 - 2009 MantisBT Group |