Openbravo Issue Tracking System - Retail Modules
View Issue Details
0034967Retail ModulesStoreServerpublic2017-01-16 14:092017-01-16 16:20
malsasua 
platform 
normalmajoralways
closedduplicate 
5
 
RR17Q1 
caristu
No
0034967: the delete client process is not finishing
In a instance with mobile core module, and the property mobile_server_key no defined, the delete client process is blocked and it is not finishing.

The problem is in this line
https://code.openbravo.com/erp/pmods/org.openbravo.mobile.core/file/0341cbbaf0aa/src/org/openbravo/mobile/core/listener/SetCurrentMobileServerListener.java#l46 [^]
is executing one update, but if the varialbe "serverkey" is null, the connection is not closed, and the table OBMOBC_SERVER_DEFINITION is locked:
https://code.openbravo.com/erp/pmods/org.openbravo.mobile.core/file/0341cbbaf0aa/src/org/openbravo/mobile/core/listener/SetCurrentMobileServerListener.java#l49 [^]

. install retail modules
. as system administrator:
  . initial client setup:
   . create a new client

  . delete client process:
   . delete the previous client created

the delete process never finish, it is locked in this database command:
ALTER TABLE OBMOBC_SERVER_DEFINITION DROP CONSTRAINT OBMOBC_SERV_DEF_ALLORG_CHK
Add OBDal.getInstance().commitAndClose(); in this line
https://code.openbravo.com/erp/pmods/org.openbravo.mobile.core/file/0341cbbaf0aa/src/org/openbravo/mobile/core/listener/SetCurrentMobileServerListener.java#l71 [^]
No tags attached.
duplicate of defect 0034756 closed Sandrahuguet Transaction left open leads to database locks when updating entries from the Mobile Server window 
Issue History
2017-01-16 14:09malsasuaNew Issue
2017-01-16 14:09malsasuaAssigned To => platform
2017-01-16 14:09malsasuaModules => Core
2017-01-16 14:09malsasuaResolution time => 1485817200
2017-01-16 14:09malsasuaTriggers an Emergency Pack => No
2017-01-16 16:18caristuProjectOpenbravo ERP => Retail Modules
2017-01-16 16:19caristuCategoryA. Platform => StoreServer
2017-01-16 16:20caristuReview Assigned To => caristu
2017-01-16 16:20caristuRelationship addedduplicate of 0034756
2017-01-16 16:20caristuStatusnew => closed
2017-01-16 16:20caristuResolutionopen => duplicate
2017-01-16 16:20caristuFixed in Version => RR17Q1

There are no notes attached to this issue.