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

View Issue DetailsJump to Notes ] Issue History ] Print ]
ID
0037909
TypeCategorySeverityReproducibilityDate SubmittedLast Update
feature request[Retail Modules] StoreServermajorhave not tried2018-02-13 22:052018-03-14 15:38
ReportermtaalView Statuspublic 
Assigned Tomtaal 
PrioritynormalResolutionfixedFixed in VersionRR18Q2
StatusclosedFix in branchFixed in SCM revisiona6d5be7a45b5
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

0037909: In store server: ServerStateBackGround process should not trigger to go offline

DescriptionThe ServerStateBackground process [1] is run both in central as well in the store server. In the store server when it detects that no timestamp update was received from the central server for a certain time the process will trigger a transition to offline.

The idea is to not let the process do this. This because transition to offline is only needed during business/opening hours and in that case it should only be triggered by user actions not behind the scenes.

[1]
https://code.openbravo.com/erp/pmods/org.openbravo.mobile.core/file/tip/src/org/openbravo/mobile/core/servercontroller/ServerStateBackground.java#l99 [^]
Steps To ReproduceInstall multi-server with server state background process enabled on store and central
Stop central
After 15 mins the store will transition to offline
Proposed SolutionRemove the code that does the transition to offline. Keep the transition to online code.
TagsNo tags attached.
Attached Filesdiff file icon 37909.diff [^] (1,848 bytes) 2018-02-14 10:52 [Show Content]

- Relationships Relation Graph ] Dependency Graph ]

-  Notes
(0102419)
hgbot (developer)
2018-02-14 21:05

Repository: erp/pmods/org.openbravo.mobile.core
Changeset: a6d5be7a45b55c008bcb7b1f00bc8a31cc1493c8
Author: Martin Taal <martin.taal <at> openbravo.com>
Date: Wed Feb 14 21:05:07 2018 +0100
URL: http://code.openbravo.com/erp/pmods/org.openbravo.mobile.core/rev/a6d5be7a45b55c008bcb7b1f00bc8a31cc1493c8 [^]

Fixes issue 37909: In store server: ServerStateBackGround process should not trigger to go offline
Prevent going offline, still log it

---
M src/org/openbravo/mobile/core/servercontroller/ServerStateBackground.java
---
(0103239)
hgbot (developer)
2018-03-14 12:25

Repository: erp/pmods/org.openbravo.mobile.core
Changeset: 7623d25c0a3db38e3730363b7d53be2c32ea0714
Author: Augusto Mauch <augusto.mauch <at> openbravo.com>
Date: Wed Mar 14 12:24:34 2018 +0100
URL: http://code.openbravo.com/erp/pmods/org.openbravo.mobile.core/rev/7623d25c0a3db38e3730363b7d53be2c32ea0714 [^]

Related with issue 37909: Enables going offline if no pings are received

By default if the store server stops receiving pings from the centarl server, it will not go offline until there is a
user action that results in a request to the central server.

This changeset adds the OBMOBC_Offline_Triggered_Only_By_User_Actions preference. If set to N, the store server will go
offline when it stops receiving pings from the central server. This preference will be used in the store server automated
testing jobs, where it is expected that the store server will go automatically offline some time after the central server
has been stopped.

---
M src-db/database/sourcedata/AD_REF_LIST.xml
M src/org/openbravo/mobile/core/servercontroller/ServerStateBackground.java
---
(0103243)
AugustoMauch (manager)
2018-03-14 15:38

Code reviewed and verified

- Issue History
Date Modified Username Field Change
2018-02-13 22:05 mtaal New Issue
2018-02-13 22:05 mtaal Assigned To => mtaal
2018-02-13 22:05 mtaal Triggers an Emergency Pack => No
2018-02-14 10:52 mtaal File Added: 37909.diff
2018-02-14 21:05 hgbot Checkin
2018-02-14 21:05 hgbot Note Added: 0102419
2018-02-14 21:05 hgbot Status new => resolved
2018-02-14 21:05 hgbot Resolution open => fixed
2018-02-14 21:05 hgbot Fixed in SCM revision => http://code.openbravo.com/erp/pmods/org.openbravo.mobile.core/rev/a6d5be7a45b55c008bcb7b1f00bc8a31cc1493c8 [^]
2018-03-13 23:14 mtaal Assigned To mtaal =>
2018-03-13 23:15 mtaal Review Assigned To => AugustoMauch
2018-03-13 23:35 mtaal Assigned To => mtaal
2018-03-14 12:25 hgbot Checkin
2018-03-14 12:25 hgbot Note Added: 0103239
2018-03-14 15:38 AugustoMauch Note Added: 0103243
2018-03-14 15:38 AugustoMauch Status resolved => closed
2018-03-14 15:38 AugustoMauch Fixed in Version => RR18Q2


Copyright © 2000 - 2009 MantisBT Group
Powered by Mantis Bugtracker