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

View Issue DetailsJump to Notes ] Issue History ] Print ]
ID
0035924
TypeCategorySeverityReproducibilityDate SubmittedLast Update
feature request[Retail Modules] StoreServermajorhave not tried2017-05-04 10:262017-05-22 15:49
ReportermtaalView Statuspublic 
Assigned Tomtaal 
PrioritynormalResolutionfixedFixed in Version
StatusclosedFix in branchFixed in SCM revisiondf14b4f9c26b
ProjectionnoneETAnoneTarget VersionRR17Q3
OSAnyDatabaseAnyJava version
OS VersionDatabase versionAnt version
Product VersionSCM revision 
Review Assigned ToAugustoMauch
Regression level
Regression date
Regression introduced in release
Regression introduced by commit
Triggers an Emergency PackNo
Summary

0035924: Trigger mandatory reload of a store server using a flag in a file

DescriptionSee 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.
Steps To ReproduceTestcases:

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
Proposed SolutionSee documentation
TagsNo tags attached.
Attached Files

- Relationships Relation Graph ] Dependency Graph ]

-  Notes
(0096448)
hgbot (developer)
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 (developer)
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 (developer)
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 (manager)
2017-05-22 15:49

Code reviewed and verified

- Issue History
Date Modified Username Field Change
2017-05-04 10:26 mtaal New Issue
2017-05-04 10:26 mtaal Assigned To => mtaal
2017-05-04 10:26 mtaal Triggers an Emergency Pack => No
2017-05-08 09:11 mtaal Review Assigned To => AugustoMauch
2017-05-08 09:12 hgbot Checkin
2017-05-08 09:12 hgbot Note Added: 0096448
2017-05-08 09:12 hgbot Status new => resolved
2017-05-08 09:12 hgbot Resolution open => fixed
2017-05-08 09:12 hgbot Fixed in SCM revision => http://code.openbravo.com/erp/pmods/org.openbravo.replication.symmetricds/rev/df14b4f9c26b33fb7772e65dd7d6babd47c749a2 [^]
2017-05-08 15:03 hgbot Checkin
2017-05-08 15:03 hgbot Note Added: 0096458
2017-05-08 15:07 hgbot Checkin
2017-05-08 15:07 hgbot Note Added: 0096459
2017-05-22 15:49 AugustoMauch Note Added: 0096716
2017-05-22 15:49 AugustoMauch Status resolved => closed


Copyright © 2000 - 2009 MantisBT Group
Powered by Mantis Bugtracker