Project:
View Issue Details[ Jump to Notes ] | [ Issue History ] [ Print ] | |||||||
ID | ||||||||
0035113 | ||||||||
Type | Category | Severity | Reproducibility | Date Submitted | Last Update | |||
defect | [Retail Modules] StoreServer | minor | have not tried | 2017-01-31 18:37 | 2017-03-10 14:29 | |||
Reporter | AugustoMauch | View Status | public | |||||
Assigned To | mtaal | |||||||
Priority | normal | Resolution | fixed | Fixed in Version | RR17Q2 | |||
Status | closed | Fix in branch | Fixed in SCM revision | 8157c32c4adb | ||||
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 | mtaal | |||||||
OBNetwork customer | No | |||||||
Support ticket | ||||||||
Regression level | ||||||||
Regression date | ||||||||
Regression introduced in release | ||||||||
Regression introduced by commit | ||||||||
Triggers an Emergency Pack | No | |||||||
Summary | 0035113: The ServerStateBackground server ping unregistered servers | |||||||
Description | When the ServerStateBackground is executed in Central Server, it will ping all the store servers defined in the Mobile Server window, even if the store server has not been deployed yet. In that case the store server will be offline until it is deployed, and the ping to that store server will be very slow because it will have to wait until the timeout is reached. | |||||||
Steps To Reproduce | - In a central server, define two entries in the Mobile Server window. - Place a breakpoint in the doExecute method of the ServerStateBackground class. You can check that the central server will try to ping the servers defined previously, even they they do not physically exist yet. | |||||||
Proposed Solution | Check if the servers are registered in the central server using SymmetricDS before pinging them. This can be done by querying the sym_node table, if a store server has been registered it will be there. The SymmetricDS module cannot be directly referenced from mobile.core, so a hook will probably be useful to filter the list of store servers to ping. | |||||||
Tags | No tags attached. | |||||||
Attached Files | ||||||||
![]() |
|||||||||||||||
|
![]() |
|
(0094657) hgbot (developer) 2017-02-28 12:05 |
Repository: erp/pmods/org.openbravo.mobile.core Changeset: 1ae21bb1861cf5114ad1630daef7a1f849339f2c Author: Augusto Mauch <augusto.mauch <at> openbravo.com> Date: Tue Feb 28 12:03:52 2017 +0100 URL: http://code.openbravo.com/erp/pmods/org.openbravo.mobile.core/rev/1ae21bb1861cf5114ad1630daef7a1f849339f2c [^] Related with issue 35113:Check if server should be pinged, if not it is offline Before actually pinging a store server, the central server will check if ping should be done to that server. This check can be extended by implementing the PingServerChecker interface: public interface PingServerChecker { boolean pingShouldBeDone(MobileServerDefinition mobileServer); } If the server is not pinged, it is considered to be offline. --- M src/org/openbravo/mobile/core/servercontroller/ServerStateBackground.java A src/org/openbravo/mobile/core/servercontroller/PingServerChecker.java --- |
(0094658) hgbot (developer) 2017-02-28 12:09 |
Repository: erp/pmods/org.openbravo.retail.storeserver.synchronization Changeset: 209ca118e6ec0727817468b3a223b7c20e257d47 Author: Augusto Mauch <augusto.mauch <at> openbravo.com> Date: Tue Feb 28 12:08:41 2017 +0100 URL: http://code.openbravo.com/erp/pmods/org.openbravo.retail.storeserver.synchronization/rev/209ca118e6ec0727817468b3a223b7c20e257d47 [^] Fixes issue 35113: Store server is not pinged if it is not registered The RegisteredServerPingChecker class implements PingServerChecker to prevent sending pings to stores that are not registered in SymmetricDS. The first time a store server is started it will automatically register, so if the server is not registered it means it has not been deployed, thus the ping is not needed, the server is offline. --- A src/org/openbravo/retail/storeserver/synchronization/RegisteredServerPingChecker.java --- |
(0094660) hgbot (developer) 2017-02-28 14:56 |
Repository: erp/pmods/org.openbravo.mobile.core Changeset: 3508789c776dd79a7369b651c1ce92f1783ae58e Author: Augusto Mauch <augusto.mauch <at> openbravo.com> Date: Tue Feb 28 14:56:17 2017 +0100 URL: http://code.openbravo.com/erp/pmods/org.openbravo.mobile.core/rev/3508789c776dd79a7369b651c1ce92f1783ae58e [^] Related with issue 35113:Backs out changeset, will push when repo is not frozen --- M src/org/openbravo/mobile/core/servercontroller/ServerStateBackground.java R src/org/openbravo/mobile/core/servercontroller/PingServerChecker.java --- |
(0094661) hgbot (developer) 2017-02-28 15:04 |
Repository: erp/pmods/org.openbravo.retail.storeserver.synchronization Changeset: 9dde3c433181f998d0237d071de0870e4ae67e6f Author: Augusto Mauch <augusto.mauch <at> openbravo.com> Date: Tue Feb 28 15:04:06 2017 +0100 URL: http://code.openbravo.com/erp/pmods/org.openbravo.retail.storeserver.synchronization/rev/9dde3c433181f998d0237d071de0870e4ae67e6f [^] Related with issue 35113:Backs out changeset until mobile.core is unfrozen --- R src/org/openbravo/retail/storeserver/synchronization/RegisteredServerPingChecker.java --- |
(0094868) hgbot (developer) 2017-03-09 11:46 |
Repository: erp/pmods/org.openbravo.retail.storeserver.synchronization Changeset: a5e52ee62ef2b0d6c1aea942dcc20d677d582d3e Author: Augusto Mauch <augusto.mauch <at> openbravo.com> Date: Thu Mar 09 11:44:25 2017 +0100 URL: http://code.openbravo.com/erp/pmods/org.openbravo.retail.storeserver.synchronization/rev/a5e52ee62ef2b0d6c1aea942dcc20d677d582d3e [^] Related with issue 35113: Reapplies changeset 209ca118e6ec --- A src/org/openbravo/retail/storeserver/synchronization/RegisteredServerPingChecker.java --- |
(0094869) hgbot (developer) 2017-03-09 11:50 |
Repository: erp/pmods/org.openbravo.mobile.core Changeset: 8157c32c4adb273200d1ef3ad9229e6e5daf5cb8 Author: Augusto Mauch <augusto.mauch <at> openbravo.com> Date: Thu Mar 09 11:50:08 2017 +0100 URL: http://code.openbravo.com/erp/pmods/org.openbravo.mobile.core/rev/8157c32c4adb273200d1ef3ad9229e6e5daf5cb8 [^] Fixes issue 35113: Reapplies changeset 1ae21bb1861c --- M src/org/openbravo/mobile/core/servercontroller/ServerStateBackground.java A src/org/openbravo/mobile/core/servercontroller/PingServerChecker.java --- |
(0094919) mtaal (viewer) 2017-03-10 14:09 |
Reviewed and tested |
![]() |
|||
Date Modified | Username | Field | Change |
2017-01-31 18:37 | AugustoMauch | New Issue | |
2017-01-31 18:37 | AugustoMauch | Assigned To | => mtaal |
2017-01-31 18:37 | AugustoMauch | OBNetwork customer | => No |
2017-01-31 18:37 | AugustoMauch | Triggers an Emergency Pack | => No |
2017-02-28 11:43 | AugustoMauch | Summary | The ServerStateBackground server ping sequentially unregistered servers => The ServerStateBackground server ping unregistered servers |
2017-02-28 11:43 | AugustoMauch | Description Updated | View Revisions |
2017-02-28 12:05 | hgbot | Checkin | |
2017-02-28 12:05 | hgbot | Note Added: 0094657 | |
2017-02-28 12:09 | hgbot | Checkin | |
2017-02-28 12:09 | hgbot | Note Added: 0094658 | |
2017-02-28 12:09 | hgbot | Status | new => resolved |
2017-02-28 12:09 | hgbot | Resolution | open => fixed |
2017-02-28 12:09 | hgbot | Fixed in SCM revision | => http://code.openbravo.com/erp/pmods/org.openbravo.retail.storeserver.synchronization/rev/209ca118e6ec0727817468b3a223b7c20e257d47 [^] |
2017-02-28 12:41 | AugustoMauch | Relationship added | related to 0035378 |
2017-02-28 14:56 | hgbot | Checkin | |
2017-02-28 14:56 | hgbot | Note Added: 0094660 | |
2017-02-28 15:04 | hgbot | Checkin | |
2017-02-28 15:04 | hgbot | Note Added: 0094661 | |
2017-03-09 10:38 | mtaal | Review Assigned To | => mtaal |
2017-03-09 11:22 | AugustoMauch | Status | resolved => new |
2017-03-09 11:22 | AugustoMauch | Resolution | fixed => open |
2017-03-09 11:46 | hgbot | Checkin | |
2017-03-09 11:46 | hgbot | Note Added: 0094868 | |
2017-03-09 11:50 | hgbot | Checkin | |
2017-03-09 11:50 | hgbot | Note Added: 0094869 | |
2017-03-09 11:50 | hgbot | Status | new => resolved |
2017-03-09 11:50 | hgbot | Resolution | open => fixed |
2017-03-09 11:50 | hgbot | Fixed in SCM revision | http://code.openbravo.com/erp/pmods/org.openbravo.retail.storeserver.synchronization/rev/209ca118e6ec0727817468b3a223b7c20e257d47 [^] => http://code.openbravo.com/erp/pmods/org.openbravo.mobile.core/rev/8157c32c4adb273200d1ef3ad9229e6e5daf5cb8 [^] |
2017-03-10 14:09 | mtaal | Note Added: 0094919 | |
2017-03-10 14:09 | mtaal | Status | resolved => closed |
2017-03-10 14:09 | mtaal | Fixed in Version | => RR17Q2 |
2017-03-10 14:23 | mtaal | Relationship added | related to 0035482 |
2017-03-10 14:24 | mtaal | Relationship deleted | related to 0035482 |
2017-03-10 14:29 | mtaal | Relationship added | related to 0035482 |
Copyright © 2000 - 2009 MantisBT Group |