Openbravo Issue Tracking System - Retail Modules
View Issue Details
0035592Retail ModulesStoreServerpublic2017-03-22 11:172017-03-29 14:22
mtaal 
AugustoMauch 
normalmajorhave not tried
closedfixed 
5
 
RR17Q2 
mtaal
No
0035592: Transition to online should wait longer between transition to online loops
Currently the code waits only 50 millis [1]. This while in some cases a transition to online waits for/requires a db synchronization. The proposal is to wait 10+ seconds.

[1]
https://code.openbravo.com/erp/pmods/org.openbravo.mobile.core/file/553553b86771/src/org/openbravo/mobile/core/servercontroller/MobileServerController.java#l634 [^]
Install multi-server
Put breakpoint in above code
Stop central
Change data to force outgoing batches
go online, check that the above code is executed
Instead of sleep(50), do a sleep of 20 seconds.
No tags attached.
Issue History
2017-03-22 11:17mtaalNew Issue
2017-03-22 11:17mtaalAssigned To => mtaal
2017-03-22 11:17mtaalTriggers an Emergency Pack => No
2017-03-29 11:00AugustoMauchAssigned Tomtaal => AugustoMauch
2017-03-29 12:33hgbotCheckin
2017-03-29 12:33hgbotNote Added: 0095637
2017-03-29 12:33hgbotStatusnew => resolved
2017-03-29 12:33hgbotResolutionopen => fixed
2017-03-29 12:33hgbotFixed in SCM revision => http://code.openbravo.com/erp/pmods/org.openbravo.mobile.core/rev/e2fa7039a8069d5995d7cfa9899c9e69736e2bd6 [^]
2017-03-29 12:35hgbotCheckin
2017-03-29 12:35hgbotNote Added: 0095638
2017-03-29 12:42AugustoMauchReview Assigned To => mtaal
2017-03-29 14:22mtaalNote Added: 0095646
2017-03-29 14:22mtaalStatusresolved => closed

Notes
(0095637)
hgbot   
2017-03-29 12:33   
Repository: erp/pmods/org.openbravo.mobile.core
Changeset: e2fa7039a8069d5995d7cfa9899c9e69736e2bd6
Author: Augusto Mauch <augusto.mauch <at> openbravo.com>
Date: Wed Mar 29 12:18:27 2017 +0200
URL: http://code.openbravo.com/erp/pmods/org.openbravo.mobile.core/rev/e2fa7039a8069d5995d7cfa9899c9e69736e2bd6 [^]

Fixes issue 35592: Waits 10 seconds between transition to online attempts

This gives more time for the transition to online conditions to be satisfied

---
M src/org/openbravo/mobile/core/servercontroller/MobileServerController.java
---
(0095638)
hgbot   
2017-03-29 12:35   
Repository: erp/pmods/org.openbravo.retail.storeserver.synchronization
Changeset: a6b478193e7f7da5605bea233761fd42bf92727b
Author: Augusto Mauch <augusto.mauch <at> openbravo.com>
Date: Wed Mar 29 12:34:59 2017 +0200
URL: http://code.openbravo.com/erp/pmods/org.openbravo.retail.storeserver.synchronization/rev/a6b478193e7f7da5605bea233761fd42bf92727b [^]

Related with issue 35592: Wait some seconds after forcing push job start

---
M src/org/openbravo/retail/storeserver/synchronization/SyncStatusOnlineTransitionHandler.java
---
(0095646)
mtaal   
2017-03-29 14:22   
Reviewed