Anonymous | Login
Project:
RSS
  
News | My View | View Issues | Roadmap | Summary

View Issue DetailsJump to Notes ] Issue History ] Print ]
ID
0035113
TypeCategorySeverityReproducibilityDate SubmittedLast Update
defect[Retail Modules] StoreServerminorhave not tried2017-01-31 18:372017-03-10 14:29
ReporterAugustoMauchView Statuspublic 
Assigned Tomtaal 
PrioritynormalResolutionfixedFixed in VersionRR17Q2
StatusclosedFix in branchFixed in SCM revision8157c32c4adb
ProjectionnoneETAnoneTarget Version
OSAnyDatabaseAnyJava version
OS VersionDatabase versionAnt version
Product VersionSCM revision 
Review Assigned Tomtaal
Regression level
Regression date
Regression introduced in release
Regression introduced by commit
Triggers an Emergency PackNo
Summary

0035113: The ServerStateBackground server ping unregistered servers

DescriptionWhen 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 SolutionCheck 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.
TagsNo tags attached.
Attached Files

- Relationships Relation Graph ] Dependency Graph ]
related to feature request 0035482RR17Q2 closedAugustoMauch MobileMainServerCheck should also use last ping approach 
related to feature request 0035378 closedmtaal The ServerStateBackground process pings store server sequentially 

-  Notes
(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 (manager)
2017-03-10 14:09

Reviewed and tested

- Issue History
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 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
Powered by Mantis Bugtracker