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

View Issue DetailsJump to Notes ] Issue History ] Print ]
ID
0035495
TypeCategorySeverityReproducibilityDate SubmittedLast Update
feature request[Retail Modules] StoreServermajorhave not tried2017-03-13 13:302017-03-21 12:27
ReportermtaalView Statuspublic 
Assigned Tomtaal 
PrioritynormalResolutionopenFixed in Version
StatusnewFix in branchFixed in SCM revision2d9fcf41d77a
ProjectionnoneETAnoneTarget Version
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

0035495: Keep track if a store server needs to sync with central before allowing connections

DescriptionThe requirement is to keep track if a store server is forced to first sync with central before it allows WebPOS systems to work with it.

The scenario is as follows:
- a new flag is added to mobile server table: sync-reload-completed
- default this flag is y
- when the store server backup is restored the system should block WebPOS systems until the reload has been done
- therefore when restoring the backup this flag should first be set to N
- it will be set to Y after the reload has happened
- while the flag is N the server should not allow WebPOS systems to work on it
Steps To ReproduceSee description
Proposed SolutionSee Description
TagsNo tags attached.
Attached Files

- Relationships Relation Graph ] Dependency Graph ]

-  Notes
(0095392)
hgbot (developer)
2017-03-19 10:40

Repository: erp/pmods/org.openbravo.mobile.core
Changeset: db7935749dd52b91b565745fb79d784b124abc09
Author: Martin Taal <martin.taal <at> openbravo.com>
Date: Sun Mar 19 10:23:05 2017 +0100
URL: http://code.openbravo.com/erp/pmods/org.openbravo.mobile.core/rev/db7935749dd52b91b565745fb79d784b124abc09 [^]

Related to issue 35495: Keep track if a store server needs to sync with central before allowing connections
Smaller field/column changes for new field to maintain reload status

---
M src-db/database/sourcedata/AD_COLUMN.xml
M src-db/database/sourcedata/AD_FIELD.xml
---
(0095402)
hgbot (developer)
2017-03-19 10:56

Repository: erp/pmods/org.openbravo.replication.symmetricds
Changeset: d2a5e9cf21174fb299a378d2075938f1b85af75d
Author: Martin Taal <martin.taal <at> openbravo.com>
Date: Sun Mar 19 10:49:10 2017 +0100
URL: http://code.openbravo.com/erp/pmods/org.openbravo.replication.symmetricds/rev/d2a5e9cf21174fb299a378d2075938f1b85af75d [^]

Related to issue 35495: Keep track if a store server needs to sync with central before allowing connections
Add new column reload status to mobile server, including new list-reference and adding it to the mobile server window

---
M src-db/database/model/modifiedTables/OBMOBC_SERVER_DEFINITION.xml
M src-db/database/sourcedata/AD_COLUMN.xml
M src-db/database/sourcedata/AD_ELEMENT.xml
M src-db/database/sourcedata/AD_FIELD.xml
M src-db/database/sourcedata/AD_REFERENCE.xml
M src-db/database/sourcedata/AD_REF_LIST.xml
---
(0095403)
hgbot (developer)
2017-03-19 10:56

Repository: erp/pmods/org.openbravo.replication.symmetricds
Changeset: be88877e90d4db2a13e7f6c97cd3e929dfeb9836
Author: Martin Taal <martin.taal <at> openbravo.com>
Date: Sun Mar 19 10:50:08 2017 +0100
URL: http://code.openbravo.com/erp/pmods/org.openbravo.replication.symmetricds/rev/be88877e90d4db2a13e7f6c97cd3e929dfeb9836 [^]

Related to issue 35495: Keep track if a store server needs to sync with central before allowing connections
Add ant task to set the system to forcibly reload at next startup

---
M build.xml
A src/org/openbravo/replication/symmetricds/task/SetMandatoryReloadFlagTask.java
---
(0095404)
hgbot (developer)
2017-03-19 10:56

Repository: erp/pmods/org.openbravo.replication.symmetricds
Changeset: 2d9fcf41d77acbd00d551fd957031483d120ff89
Author: Martin Taal <martin.taal <at> openbravo.com>
Date: Sun Mar 19 10:51:58 2017 +0100
URL: http://code.openbravo.com/erp/pmods/org.openbravo.replication.symmetricds/rev/2d9fcf41d77acbd00d551fd957031483d120ff89 [^]

Fixes issue 35495: Keep track if a store server needs to sync with central before allowing connections
Added new thread-class to continue reload actions. Some reformatting. Removed system.exit as the acccess from WebPOS is anyway prevented.
Do less attempts to reload in case of non-mandatory reload

---
M src/org/openbravo/replication/symmetricds/SetupSymmetricListener.java
---
(0095465)
AugustoMauch (developer)
2017-03-21 12:25
edited on: 2017-03-21 12:25

In SetMandatoryReloadFlagTask, I think it is better to do the update using the mobile.server.key specified in the Openbravo.properties rather than using the iscurrent flag.

The iscurrent flag is programatically set in a context listener, users do not set it manually.

(0095466)
AugustoMauch (developer)
2017-03-21 12:27

I am not sure about setting the reload status to OK after five minutes if the reload was not mandatory [1]. Why not waiting until it is finished?

[1] https://code.openbravo.com/erp/pmods/org.openbravo.replication.symmetricds/rev/2d9fcf41d77acbd00d551fd957031483d120ff89#l1.296 [^]

- Issue History
Date Modified Username Field Change
2017-03-13 13:30 mtaal New Issue
2017-03-13 13:30 mtaal Assigned To => mtaal
2017-03-13 13:30 mtaal Triggers an Emergency Pack => No
2017-03-19 10:40 hgbot Checkin
2017-03-19 10:40 hgbot Note Added: 0095392
2017-03-19 10:56 hgbot Checkin
2017-03-19 10:56 hgbot Note Added: 0095402
2017-03-19 10:56 hgbot Checkin
2017-03-19 10:56 hgbot Note Added: 0095403
2017-03-19 10:56 hgbot Checkin
2017-03-19 10:56 hgbot Note Added: 0095404
2017-03-19 10:56 hgbot Status new => resolved
2017-03-19 10:56 hgbot Resolution open => fixed
2017-03-19 10:56 hgbot Fixed in SCM revision => http://code.openbravo.com/erp/pmods/org.openbravo.replication.symmetricds/rev/2d9fcf41d77acbd00d551fd957031483d120ff89 [^]
2017-03-20 10:49 mtaal Review Assigned To => AugustoMauch
2017-03-21 12:25 AugustoMauch Note Added: 0095465
2017-03-21 12:25 AugustoMauch Status resolved => new
2017-03-21 12:25 AugustoMauch Resolution fixed => open
2017-03-21 12:25 AugustoMauch Note Edited: 0095465 View Revisions
2017-03-21 12:27 AugustoMauch Note Added: 0095466


Copyright © 2000 - 2009 MantisBT Group
Powered by Mantis Bugtracker