Openbravo Issue Tracking System - Retail Modules
View Issue Details
0037249Retail ModulesStoreServerpublic2017-11-07 13:372017-11-08 11:44
mtaal 
mtaal 
normalminorhave not tried
closedfixed 
5
 
piRR18Q1 
AugustoMauch
No
0037249: For server to server requests set read and connection time out
The case is described in this [1] document. When doing server to server requests [2] no time out is set. This means that the system uses the default (infinite wait) for 2 timeouts:
- connect timeout: timeout for creating the request connection between servers
- read timeout: timeout in which the calling server waits for the receiving server to process the request. The read timeout applies after the connection to the other server has been made.

The system default is infinite wait.

[1]
https://docs.google.com/document/d/1ZNgmx_AWu0t8zBuXwgkeHH6sFsb_X-G8k7KyWxkAaHQ/edit?ts=5a018088# [^]
Install multi-server
Put a breakpoint in the request executor when it catches an exception [1]
Put a breakpoint in the central server OrderLoader
Goto webpos, enter ticket and submit
skip the breakpoint in the store server, let it wait on the breakpoint in the CS.

The request from SS to CS does not timeout. If it would timeout a timeout exception should be caught at [1]

[2]
https://code.openbravo.com/erp/pmods/org.openbravo.mobile.core/file/ca39e197ccae/src/org/openbravo/mobile/core/servercontroller/MobileServerRequestExecutor.java#l197 [^]
Default connect timeout at 5 seconds and the readtimeout at 15 minutes. Do the change here [1]. Make the timeouts configurable if possible.

[1]
https://code.openbravo.com/erp/pmods/org.openbravo.mobile.core/file/ca39e197ccae/src/org/openbravo/mobile/core/servercontroller/MobileServerRequestExecutor.java#l70 [^]
No tags attached.
related to defect 0036884 closed mtaal [SERQA 3289] If we stop the instance instead of tomcat we get a timeout paying a ticket 
blocks feature request 0037379 closed mtaal In mobile server request executor when read time out occurs then do not go offline 
Issue History
2017-11-07 13:37mtaalNew Issue
2017-11-07 13:37mtaalAssigned To => mtaal
2017-11-07 13:37mtaalTriggers an Emergency Pack => No
2017-11-07 15:07mtaalNote Added: 0100307
2017-11-07 15:07mtaalStatusnew => acknowledged
2017-11-07 15:08mtaalReview Assigned To => AugustoMauch
2017-11-08 09:01hgbotCheckin
2017-11-08 09:01hgbotNote Added: 0100328
2017-11-08 09:01hgbotStatusacknowledged => resolved
2017-11-08 09:01hgbotResolutionopen => fixed
2017-11-08 09:01hgbotFixed in SCM revision => http://code.openbravo.com/erp/pmods/org.openbravo.mobile.core/rev/f21e14b092a045a017abaf9b5d96ed76e14c7dd0 [^]
2017-11-08 11:44AugustoMauchNote Added: 0100338
2017-11-08 11:44AugustoMauchStatusresolved => closed
2017-11-08 11:44AugustoMauchFixed in Version => RR18Q1
2017-11-19 23:55mtaalRelationship addedhas duplicate 0036884
2017-11-19 23:56mtaalRelationship deletedhas duplicate 0036884
2017-11-19 23:56mtaalRelationship addedrelated to 0036884
2017-11-24 07:11mtaalRelationship addedblocks 0037379

Notes
(0100307)
mtaal   
2017-11-07 15:07   
Docs added here:
http://wiki.openbravo.com/wiki/Store_and_Multi_Server_Preferences#Behavioral_Preferences [^]
(0100328)
hgbot   
2017-11-08 09:01   
Repository: erp/pmods/org.openbravo.mobile.core
Changeset: f21e14b092a045a017abaf9b5d96ed76e14c7dd0
Author: Martin Taal <martin.taal <at> openbravo.com>
Date: Wed Nov 08 09:00:45 2017 +0100
URL: http://code.openbravo.com/erp/pmods/org.openbravo.mobile.core/rev/f21e14b092a045a017abaf9b5d96ed76e14c7dd0 [^]

fixes issue 37249, fixes issue 37227: For server to server requests set read and connection time out
Set defaults for read and connection timeout and make them configurable
Make sure max retries has minimum value of 1

---
M src-db/database/sourcedata/AD_REF_LIST.xml
M src/org/openbravo/mobile/core/servercontroller/MobileServerRequestExecutor.java
---
(0100338)
AugustoMauch   
2017-11-08 11:44   
Code reviewed and verified