Openbravo Issue Tracking System - Retail Modules
View Issue Details
0035924Retail ModulesStoreServerpublic2017-05-04 10:262017-05-22 15:49
mtaal 
mtaal 
normalmajorhave not tried
closedfixed 
5
 
RR17Q3 
AugustoMauch
No
0035924: Trigger mandatory reload of a store server using a flag in a file
See the documentation here:
http://wiki.openbravo.com/wiki/Retail:Store_Server_Initial_Data_Reload#Mandatory_versus_Non-Mandatory_Reload_-_forcing_mandatory_reload_at_startup [^]

The logic implemented in this issue covers the case that a file is used to flag that a mandatory reload is needed.
Testcases:

Base steps: Assume multi-server environment, stop store, change some data in central

- create a file with value 'replica' in /etc/hpvswitch.flag, check that mandatory reload is executed and that file has value primary after wards
- create a file with value 'replica' in /etc/hpvswitch.flag, set security permissions to not allow reading, check that mandatory reload is not executed and that file is not changed
- create a file with value 'replica' in /etc/hpvswitch.flag, set security permissions to not allow writing, check that mandatory reload is executed and that file is not changed, at restart a new mandatory reload is started again
- create a file in a different location with value replica, set the location in Openbravo.properties using the relevant flag, check that mandatory reload is executed and that file content is updated
- force a non-successful mandatory reload by creating prod-cat in central, add a product to it. This gets replicated to the store. In the store remove the product category and product. Stop the store server, set the file as above, Then in central update the product. Mandatory reload should fail and system should not be reachable by WebPOS
See documentation
No tags attached.
Issue History
2017-05-04 10:26mtaalNew Issue
2017-05-04 10:26mtaalAssigned To => mtaal
2017-05-04 10:26mtaalTriggers an Emergency Pack => No
2017-05-08 09:11mtaalReview Assigned To => AugustoMauch
2017-05-08 09:12hgbotCheckin
2017-05-08 09:12hgbotNote Added: 0096448
2017-05-08 09:12hgbotStatusnew => resolved
2017-05-08 09:12hgbotResolutionopen => fixed
2017-05-08 09:12hgbotFixed in SCM revision => http://code.openbravo.com/erp/pmods/org.openbravo.replication.symmetricds/rev/df14b4f9c26b33fb7772e65dd7d6babd47c749a2 [^]
2017-05-08 15:03hgbotCheckin
2017-05-08 15:03hgbotNote Added: 0096458
2017-05-08 15:07hgbotCheckin
2017-05-08 15:07hgbotNote Added: 0096459
2017-05-22 15:49AugustoMauchNote Added: 0096716
2017-05-22 15:49AugustoMauchStatusresolved => closed

Notes
(0096448)
hgbot   
2017-05-08 09:12   
Repository: erp/pmods/org.openbravo.replication.symmetricds
Changeset: df14b4f9c26b33fb7772e65dd7d6babd47c749a2
Author: Martin Taal <martin.taal <at> openbravo.com>
Date: Mon May 08 09:12:27 2017 +0200
URL: http://code.openbravo.com/erp/pmods/org.openbravo.replication.symmetricds/rev/df14b4f9c26b33fb7772e65dd7d6babd47c749a2 [^]

Fixes issue 35924: Trigger mandatory reload of a store server using a flag in a file
Add check of value in reload-flag file, only needed in case there is data pending to sync
from central to store.

---
M src/org/openbravo/replication/symmetricds/SetupSymmetricListener.java
---
(0096458)
hgbot   
2017-05-08 15:03   
Repository: erp/pmods/org.openbravo.replication.symmetricds
Changeset: 54bace9c2fb76d068690ce0fc8531aefa9795d9f
Author: Martin Taal <martin.taal <at> openbravo.com>
Date: Mon May 08 15:03:18 2017 +0200
URL: http://code.openbravo.com/erp/pmods/org.openbravo.replication.symmetricds/rev/54bace9c2fb76d068690ce0fc8531aefa9795d9f [^]

Related to issue 35924: Trigger mandatory reload of a store server using a flag in a file
Updated copyright year

---
M src/org/openbravo/replication/symmetricds/SetupSymmetricListener.java
---
(0096459)
hgbot   
2017-05-08 15:07   
Repository: erp/pmods/org.openbravo.replication.symmetricds
Changeset: 4e866de68b7b70efa075923de0a36a0a52feefe0
Author: Martin Taal <martin.taal <at> openbravo.com>
Date: Mon May 08 15:06:50 2017 +0200
URL: http://code.openbravo.com/erp/pmods/org.openbravo.replication.symmetricds/rev/4e866de68b7b70efa075923de0a36a0a52feefe0 [^]

Related to issue 35924: Trigger mandatory reload of a store server using a flag in a file
Replace 1.8 api with 1.7 api call to Files.readAllLines

---
M src/org/openbravo/replication/symmetricds/SetupSymmetricListener.java
---
(0096716)
AugustoMauch   
2017-05-22 15:49   
Code reviewed and verified