Openbravo Issue Tracking System - Retail Modules
View Issue Details
0029740Retail ModulesWeb POSpublic2015-04-29 18:452015-04-29 18:45
plujan 
Retail 
normalminorhave not tried
newopen 
5
main 
 
No
0029740: Open connections may cause a deadlock while updating webPOS
I tried to update Q2 from RC2 to RC3. I did not realise about some terminal windows opened because of recent tasks.

The update via GUI did not finish since the recreation of OBPOS_ERRORS table could not get an exclusive lock.

The problem is that no information has been shown during the process. Not even the process failed, it just kept trying to recreate the table.
Preconditions: The precondition is not quite clear but it is related to some recent work being done in a terminal window.

Get a new version of the webPOS module and update it using the Module Management Console.

Note that the process never ends. Check the log and you will find something like:
2015-04-29 14:57:40 UTC LOG: process 17968 still waiting for AccessExclusiveLock on relation 41153 of database 40921 after 1000.257 ms
2015-04-29 14:57:40 UTC STATEMENT: -- END
        ALTER TABLE OBPOS_ERRORS
            DROP CONSTRAINT OBPOS_ERRORS_CLIENT

If an existing session can create such a conflict, some previous validation should exist. The user should get some feedback about the problem and be able to fix it without causing any harm in the system.
No tags attached.
Issue History
2015-04-29 18:45plujanNew Issue
2015-04-29 18:45plujanAssigned To => Retail
2015-04-29 18:45plujanTriggers an Emergency Pack => No

There are no notes attached to this issue.