Openbravo Issue Tracking System - Retail Modules
View Issue Details
0038707Retail ModulesWeb POSpublic2018-06-05 17:342018-06-18 13:37
jorge-garcia 
jorge-garcia 
normalmajorsometimes
closedfixed 
5
 
RR18Q3 
marvintm
No
0038707: If server is overloaded, the terminal request could fail
If server is overloaded, the term.Terminal request could fail.

This problem was detected during JMeter tests trying to load more than 400 terminals in 5 minutes.

term.Terminal request is important for the rest of request, to get the obpos_applications_id from server. If this request fails, the login process stops.

This term.Terminal request is very fast and only fails when the server is overloaded.
1) Execute JMeter test with 400 terminals doing login in 5 minutes.
2) Several requests from masterdata fails caused by the missing information of the term.Terminal request, which has reached its timeout
Increase the timeout of term.Terminal request in mobile services to wait a bit longer.
No tags attached.
Issue History
2018-06-05 17:34jorge-garciaNew Issue
2018-06-05 17:34jorge-garciaAssigned To => jorge-garcia
2018-06-05 17:34jorge-garciaTriggers an Emergency Pack => No
2018-06-06 10:37jorge-garciaStatusnew => scheduled
2018-06-08 08:33hgbotCheckin
2018-06-08 08:33hgbotNote Added: 0105025
2018-06-08 08:34hgbotCheckin
2018-06-08 08:34hgbotNote Added: 0105026
2018-06-08 08:34hgbotStatusscheduled => resolved
2018-06-08 08:34hgbotResolutionopen => fixed
2018-06-08 08:34hgbotFixed in SCM revision => http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/730a28c4ffbd37fc314759b3130332b374fb3b8e [^]
2018-06-12 09:01hgbotCheckin
2018-06-12 09:01hgbotNote Added: 0105078
2018-06-18 13:37marvintmReview Assigned To => marvintm
2018-06-18 13:37marvintmStatusresolved => closed
2018-06-18 13:37marvintmFixed in Version => RR18Q3

Notes
(0105025)
hgbot   
2018-06-08 08:33   
Repository: erp/pmods/org.openbravo.mobile.core
Changeset: 50c3408287b10491756182efd648da193551c7d0
Author: Jorge Garcia <jorge.garcia <at> openbravo.com>
Date: Fri Jun 08 08:31:25 2018 +0200
URL: http://code.openbravo.com/erp/pmods/org.openbravo.mobile.core/rev/50c3408287b10491756182efd648da193551c7d0 [^]

Related to issue 38707: If server is overloaded, the terminal request could fail

JSONProcessSimple now implements the check to verify the request has not
reach the timeout defined.

---
M src/org/openbravo/mobile/core/process/JSONProcessSimple.java
---
(0105026)
hgbot   
2018-06-08 08:34   
Repository: erp/pmods/org.openbravo.retail.posterminal
Changeset: 730a28c4ffbd37fc314759b3130332b374fb3b8e
Author: Jorge Garcia <jorge.garcia <at> openbravo.com>
Date: Wed Jun 06 10:31:25 2018 +0200
URL: http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/730a28c4ffbd37fc314759b3130332b374fb3b8e [^]

Fixed issue 38707: If server is overloaded, the terminal request could fail

Increase term.Terminal timeout from 5 seconds to 15 seconds.

Terminal class now manage correctly all exceptions (not only IOExceptions)
and logs a error message.

---
M src-db/database/sourcedata/OBMOBC_SERVICES.xml
M src/org/openbravo/retail/posterminal/term/Terminal.java
---
(0105078)
hgbot   
2018-06-12 09:01   
Repository: erp/pmods/org.openbravo.retail.posterminal
Changeset: 759024347ec28625370a598850803589b029d759
Author: Jorge Garcia <jorge.garcia <at> openbravo.com>
Date: Mon Jun 11 17:40:23 2018 +0200
URL: http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/759024347ec28625370a598850803589b029d759 [^]

Related to issue 38707: If server is overloaded, the terminal request could fail

Throw a proper message to be received by webPOS in case Terminal request
fails.

---
M src/org/openbravo/retail/posterminal/term/Terminal.java
---