Openbravo Issue Tracking System - Retail Modules
View Issue Details
0032872Retail ModulesWeb POSpublic2016-05-05 11:512016-07-05 10:10
malsasua 
jorge-garcia 
highmajorsometimes
closedfixed 
5
 
 
migueldejuana
No
0032872: [OFFLINE] cash management: error in data import entry window by dead lock
In some cases, when a cash management is being synced at the simultaneously that a receipt (OrderLoader), the cash management is not processed, and it is stored in "data import entry" with the error:
ERROR org.openbravo.retail.posterminal.importprocess.CashManagementImportEntryProcessor$CashManagementRunnable - id to load is required for loading
java.lang.IllegalArgumentException: id to load is required for loading

In database log, deadlock error is displayed:2016-05-04 16:49:22 CDT LOG: duration: 5252.992 ms execute S_166: COMMIT
ERROR: deadlock detected
DETAIL: Process 15228 waits for ShareLock on transaction 154569791; blocked by process 16429.
        Process 16429 waits for ExclusiveLock on tuple (40,4) of relation 208150 of database 202823; blocked by process 15228.
        Process 15228: update FIN_Financial_Account set Updated=$1, Currentbalance=$2 where Fin_Financial_Account_ID=$3
        Process 16429: update FIN_Financial_Account set Updated=$1, Currentbalance=$2 where Fin_Financial_Account_ID=$3
it is reproducible sometimes.

in WEBPOS:
. do login
. go offline
. create receipt1, pay it with cash
. create receipt2, pay it with cash
. create receipt3, pay it with cash
. create receipt4, pay it with cash
. create cashmgm1
. create cashmgm2
. create cashmgm3
. create cashmgm4
. go online

in backoffice
. go to data import entry window
all cash management should be processed before to process the receipts (similar to cashup)
No tags attached.
depends on backport 0033344RR16Q2.1 closed jorge-garcia [OFFLINE] cash management: error in data import entry window by dead lock 
Issue History
2016-05-05 11:51malsasuaNew Issue
2016-05-05 11:51malsasuaAssigned To => Retail
2016-05-05 11:51malsasuaResolution time => 1465509600
2016-05-05 11:51malsasuaTriggers an Emergency Pack => No
2016-05-10 10:11OrekariaStatusnew => acknowledged
2016-05-12 09:04jorge-garciaStatusacknowledged => scheduled
2016-05-12 09:04jorge-garciaAssigned ToRetail => jorge-garcia
2016-05-12 16:04jorge-garciaSummarycash management: error in data import entry window by dead lock => [OFFLINE] cash management: error in data import entry window by dead lock
2016-05-13 08:48hgbotCheckin
2016-05-13 08:48hgbotNote Added: 0086436
2016-05-13 08:48hgbotStatusscheduled => resolved
2016-05-13 08:48hgbotResolutionopen => fixed
2016-05-13 08:48hgbotFixed in SCM revision => http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/1c8ec90a699006758e75c8361082d753f7df7583 [^]
2016-05-17 15:44migueldejuanaReview Assigned To => migueldejuana
2016-05-17 15:44migueldejuanaNote Added: 0086501
2016-05-17 15:44migueldejuanaStatusresolved => closed
2016-06-23 17:37marvintmStatusclosed => new
2016-06-23 17:37marvintmResolutionfixed => open
2016-06-23 17:37marvintmStatusnew => scheduled
2016-06-23 17:38marvintmStatusscheduled => resolved
2016-06-23 17:38marvintmResolutionopen => fixed
2016-06-23 17:38marvintmStatusresolved => closed
2016-07-05 10:09hgbotCheckin
2016-07-05 10:09hgbotNote Added: 0088193
2016-07-05 10:09hgbotStatusclosed => resolved
2016-07-05 10:09hgbotFixed in SCM revisionhttp://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/1c8ec90a699006758e75c8361082d753f7df7583 [^] => http://code.openbravo.com/retail/backports/3.0RR16Q2.1/org.openbravo.retail.posterminal/rev/dd442a8ef009f204e60d19ac916b0e86e31864b8 [^]
2016-07-05 10:10migueldejuanaStatusresolved => closed

Notes
(0086436)
hgbot   
2016-05-13 08:48   
Repository: erp/pmods/org.openbravo.retail.posterminal
Changeset: 1c8ec90a699006758e75c8361082d753f7df7583
Author: Jorge Garcia <jorge.garcia <at> openbravo.com>
Date: Thu May 12 16:37:54 2016 +0200
URL: http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/1c8ec90a699006758e75c8361082d753f7df7583 [^]

Fixed issue 32872: cash management: error in data import entry window by
dead lock

The solution here is to check if there is an order or a transaction beeing
processed in the Import Entry Processor to avoid transaction colitions in the
database.

---
M src/org/openbravo/retail/posterminal/importprocess/CashManagementImportEntryProcessor.java
---
(0086501)
migueldejuana   
2016-05-17 15:44   
Reviewed
(0088193)
hgbot   
2016-07-05 10:09   
Repository: retail/backports/3.0RR16Q2.1/org.openbravo.retail.posterminal
Changeset: dd442a8ef009f204e60d19ac916b0e86e31864b8
Author: Jorge Garcia <jorge.garcia <at> openbravo.com>
Date: Thu May 12 16:37:54 2016 +0200
URL: http://code.openbravo.com/retail/backports/3.0RR16Q2.1/org.openbravo.retail.posterminal/rev/dd442a8ef009f204e60d19ac916b0e86e31864b8 [^]

Fixed issue 32872: cash management: error in data import entry window by
dead lock

The solution here is to check if there is an order or a transaction beeing
processed in the Import Entry Processor to avoid transaction colitions in the
database.

---
M src/org/openbravo/retail/posterminal/importprocess/CashManagementImportEntryProcessor.java
---