Openbravo Issue Tracking System - Retail Modules |
View Issue Details |
|
ID | Project | Category | View Status | Date Submitted | Last Update |
0033101 | Retail Modules | Web POS | public | 2016-06-01 12:16 | 2016-06-29 17:36 |
|
Reporter | mtaal | |
Assigned To | mtaal | |
Priority | normal | Severity | minor | Reproducibility | have not tried |
Status | closed | Resolution | fixed | |
Platform | | OS | 5 | OS Version | |
Product Version | | |
Target Version | RR16Q3 | Fixed in Version | | |
Merge Request Status | |
Review Assigned To | AugustoMauch |
OBNetwork customer | No |
Support ticket | |
Regression level | |
Regression date | |
Regression introduced in release | |
Regression introduced by commit | |
Triggers an Emergency Pack | No |
|
Summary | 0033101: Several improvements to Multi-Server: all prefs as milli-seconds, separate thread for online transition |
Description | This issue combines several improvements in the multi-server behavior:
- use request retry time out also on server
- wait short time between retrying connection
- do transition to online in separate thread
- don't cache server definition, but cache the server definition id
- make sure all multi-server time prefs are in milli-seconds and have sensible defaults |
Steps To Reproduce | Check multi-server code |
Proposed Solution | |
Additional Information | |
Tags | No tags attached. |
Relationships | |
Attached Files | |
|
Issue History |
Date Modified | Username | Field | Change |
2016-06-01 12:16 | mtaal | New Issue | |
2016-06-01 12:16 | mtaal | Assigned To | => mtaal |
2016-06-01 12:16 | mtaal | OBNetwork customer | => No |
2016-06-01 12:16 | mtaal | Triggers an Emergency Pack | => No |
2016-06-06 08:52 | hgbot | Checkin | |
2016-06-06 08:52 | hgbot | Note Added: 0087015 | |
2016-06-06 08:52 | hgbot | Status | new => resolved |
2016-06-06 08:52 | hgbot | Resolution | open => fixed |
2016-06-06 08:52 | hgbot | Fixed in SCM revision | => http://code.openbravo.com/erp/pmods/org.openbravo.mobile.core/rev/6a6f980e374af7fabf739bda3998edcf0682135d [^] |
2016-06-13 16:51 | mtaal | Review Assigned To | => AugustoMauch |
2016-06-14 16:49 | AugustoMauch | Note Added: 0087257 | |
2016-06-14 17:21 | AugustoMauch | Note Added: 0087259 | |
2016-06-14 17:21 | AugustoMauch | Status | resolved => new |
2016-06-14 17:21 | AugustoMauch | Resolution | fixed => open |
2016-06-16 08:37 | hgbot | Checkin | |
2016-06-16 08:37 | hgbot | Note Added: 0087324 | |
2016-06-16 08:37 | hgbot | Status | new => resolved |
2016-06-16 08:37 | hgbot | Resolution | open => fixed |
2016-06-16 08:37 | hgbot | Fixed in SCM revision | http://code.openbravo.com/erp/pmods/org.openbravo.mobile.core/rev/6a6f980e374af7fabf739bda3998edcf0682135d [^] => http://code.openbravo.com/erp/pmods/org.openbravo.mobile.core/rev/caa052599230fd23f9b798c2b17c08ae8df02249 [^] |
2016-06-29 17:36 | AugustoMauch | Note Added: 0088086 | |
2016-06-29 17:36 | AugustoMauch | Status | resolved => closed |
Notes |
|
(0087015)
|
hgbot
|
2016-06-06 08:52
|
|
Repository: erp/pmods/org.openbravo.mobile.core
Changeset: 6a6f980e374af7fabf739bda3998edcf0682135d
Author: Martin Taal <martin.taal <at> openbravo.com>
Date: Mon Jun 06 08:51:09 2016 +0200
URL: http://code.openbravo.com/erp/pmods/org.openbravo.mobile.core/rev/6a6f980e374af7fabf739bda3998edcf0682135d [^]
Fixes issue 33101: Several improvements to Multi-Server: all prefs as milli-seconds, separate thread for online transition
AD_REF_LIST.xml --> change description of prefs to show that milliseconds should be entered
MobileMainServerCheck.java --> use milliseconds, use request interval pref, prevent connection leak
MobileServerController.java --> make sure that also in admin mode a server can be found, cache this server id, not the server instance, move transition to online logic to separate thread
MobileServerRequestExecutor.java --> wait 50ms between retries, re-use code, solve issue that status was not recomputed
ServerStateBackground.java --> if store server only check main server, if main server only check store servers
---
M src-db/database/sourcedata/AD_REF_LIST.xml
M src/org/openbravo/mobile/core/servercontroller/MobileMainServerCheck.java
M src/org/openbravo/mobile/core/servercontroller/MobileServerController.java
M src/org/openbravo/mobile/core/servercontroller/MobileServerRequestExecutor.java
M src/org/openbravo/mobile/core/servercontroller/RetrieveMobileServerStatus.java
M src/org/openbravo/mobile/core/servercontroller/ServerStateBackground.java
---
|
|
|
|
|
|
|
|
|
(0087324)
|
hgbot
|
2016-06-16 08:37
|
|
Repository: erp/pmods/org.openbravo.mobile.core
Changeset: caa052599230fd23f9b798c2b17c08ae8df02249
Author: Martin Taal <martin.taal <at> openbravo.com>
Date: Thu Jun 16 08:36:30 2016 +0200
URL: http://code.openbravo.com/erp/pmods/org.openbravo.mobile.core/rev/caa052599230fd23f9b798c2b17c08ae8df02249 [^]
Fixes issue 33101: Several improvements to Multi-Server: all prefs as milli-seconds, separate thread for online transition
Improvements after code review
MobileMainServerCheck:
- improved class javadoc
- moved values to constants
- offline check should not check own server, added this in the whereclause in the main loop
- moved code from main loop to separate method to improve readability
MobileServerController:
- updated javadoc
- transition to online code: moved code to separate method to improve readability
MobileServerRequestExecutor:
- implemented tryConnection without retries parameter
- updated javadoc
- solved error in whereclause (forgotten quote)
MultiServerJSONProcess:
- log the exception
---
M src/org/openbravo/mobile/core/servercontroller/MobileMainServerCheck.java
M src/org/openbravo/mobile/core/servercontroller/MobileServerController.java
M src/org/openbravo/mobile/core/servercontroller/MobileServerRequestExecutor.java
M src/org/openbravo/mobile/core/servercontroller/MultiServerJSONProcess.java
---
|
|
|
|
|