Project:
View Issue Details[ Jump to Notes ] | [ Issue History ] [ Print ] | |||||||
ID | ||||||||
0037380 | ||||||||
Type | Category | Severity | Reproducibility | Date Submitted | Last Update | |||
feature request | [Retail Modules] StoreServer | major | have not tried | 2017-11-24 07:16 | 2017-11-29 15:57 | |||
Reporter | mtaal | View Status | public | |||||
Assigned To | mtaal | |||||||
Priority | normal | Resolution | fixed | Fixed in Version | ||||
Status | closed | Fix in branch | Fixed in SCM revision | 54883ed296c8 | ||||
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 | migueldejuana | |||||||
OBNetwork customer | No | |||||||
Support ticket | ||||||||
Regression level | ||||||||
Regression date | ||||||||
Regression introduced in release | ||||||||
Regression introduced by commit | ||||||||
Triggers an Emergency Pack | No | |||||||
Summary | 0037380: Only do transition to online when it is possible | |||||||
Description | When a store server is offline it will automatically transition to online when the connection to the CS is restored. However if there are blocking issues (like related to replication) then the SS will go offline again. During this transition to online and back the system can not be used. As the system will retry transitioning this makes the system much less available. Related docs: http://wiki.openbravo.com/wiki/Store_Server_Online_and_Offline_Concepts [^] http://wiki.openbravo.com/wiki/Store_and_Multi_Server_Preferences#Behavioral_Preferences [^] (see transition to online wait time) | |||||||
Steps To Reproduce | Install multi-server, set low transition to online failed wait time) Cause a replication error from store to central Put down CS, SS goes offline Restart CS SS will retry transition to online continuously | |||||||
Proposed Solution | Do a pre-check in transition to online code if transition to online is possible | |||||||
Tags | No tags attached. | |||||||
Attached Files | ||||||||
![]() |
||||||||
|
![]() |
|
(0100716) mtaal (viewer) 2017-11-26 13:33 |
Easiest way to check the code is implement the transition to online handler and check server offline handlers as below. Implement the handlers as shown below Run multi-server Stop CS so the SS goes offline Restart CS, send a force transition to online Check that the transition to online does not start even Change the test handlers below to allow transition, send transition to online Now it should go online public static class TESTForOffline extends CheckServerOfflineHandler { @Override public boolean isServerOffline() { return true; } } public static class TESTOnlineTransitionHandler extends MobileServerTransitionToOnlineHandler { @Override public void processTransactions() { } @Override public String getOfflineLog() { return "Checking offline TEST"; } @Override public boolean isReadyToGoOnline() { return false; } } } |
(0100718) hgbot (developer) 2017-11-26 23:10 |
Repository: erp/pmods/org.openbravo.mobile.core Changeset: 54883ed296c8fc6b984af3f81166896ebd346643 Author: Martin Taal <martin.taal <at> openbravo.com> Date: Sun Nov 26 23:10:17 2017 +0100 URL: http://code.openbravo.com/erp/pmods/org.openbravo.mobile.core/rev/54883ed296c8fc6b984af3f81166896ebd346643 [^] Fixes issue 37380: Only do transition to online when it is possible Do transition to online in two steps: only do it when possible, adding a new method to the api for checking if transition to online is possible, also call the check servers offline before actually going to transition --- M src/org/openbravo/mobile/core/servercontroller/MobileServerController.java M src/org/openbravo/mobile/core/servercontroller/MobileServerTransitionToOnlineHandler.java M src/org/openbravo/mobile/core/servercontroller/MobileServerUtils.java --- |
(0100813) migueldejuana (viewer) 2017-11-29 15:57 |
Reviewed |
![]() |
|||
Date Modified | Username | Field | Change |
2017-11-24 07:16 | mtaal | New Issue | |
2017-11-24 07:16 | mtaal | Assigned To | => mtaal |
2017-11-24 07:16 | mtaal | OBNetwork customer | => No |
2017-11-24 07:16 | mtaal | Triggers an Emergency Pack | => No |
2017-11-26 13:33 | mtaal | Note Added: 0100716 | |
2017-11-26 23:07 | mtaal | Review Assigned To | => AugustoMauch |
2017-11-26 23:10 | hgbot | Checkin | |
2017-11-26 23:10 | hgbot | Note Added: 0100718 | |
2017-11-26 23:10 | hgbot | Status | new => resolved |
2017-11-26 23:10 | hgbot | Resolution | open => fixed |
2017-11-26 23:10 | hgbot | Fixed in SCM revision | => http://code.openbravo.com/erp/pmods/org.openbravo.mobile.core/rev/54883ed296c8fc6b984af3f81166896ebd346643 [^] |
2017-11-27 10:18 | mtaal | Review Assigned To | AugustoMauch => migueldejuana |
2017-11-29 15:57 | migueldejuana | Note Added: 0100813 | |
2017-11-29 15:57 | migueldejuana | Status | resolved => closed |
2017-11-30 11:27 | mtaal | Relationship added | causes 0037425 |
Copyright © 2000 - 2009 MantisBT Group |