Openbravo Issue Tracking System - Retail Modules |
View Issue Details |
|
ID | Project | Category | View Status | Date Submitted | Last Update |
0034756 | Retail Modules | StoreServer | public | 2016-12-16 12:00 | 2016-12-20 09:29 |
|
Reporter | AugustoMauch | |
Assigned To | Sandrahuguet | |
Priority | immediate | Severity | major | Reproducibility | have not tried |
Status | closed | Resolution | fixed | |
Platform | | OS | 5 | OS Version | |
Product Version | | |
Target Version | | Fixed in Version | | |
Merge Request Status | |
Review Assigned To | AugustoMauch |
OBNetwork customer | No |
Support ticket | |
Regression level | Production - QA Approved |
Regression date | 2016-08-19 |
Regression introduced in release | RR16Q4 |
Regression introduced by commit | https://code.openbravo.com/erp/pmods/org.openbravo.mobile.core/rev/6ccbd09b41f4 [^] |
Triggers an Emergency Pack | No |
|
Summary | 0034756: Transaction left open leads to database locks when updating entries from the Mobile Server window |
Description | There is a bug in SetCurrentMobileServerListener that results in a transaction being left open if the mobile.server.key property is not defined in Openbravo.properties.
As a result of that transaction being left open, it will not be possible to update a mobile server that was already defined when Tomcat was last started because the uncommited transaction will cause a database lock. |
Steps To Reproduce | - Make sure there is at least one entry in the obmobc_server_definition table.
- Make sure the mobile.server.key parameter is not defined in Openbravo.properties
- Start Tomcat
- After starting Tomcat, run this query in the database to check that one transaction has been left open: select * from pg_stat_activity where state <> 'idle' and query ilike '%server%';
- Open the Mobile Server window and try to modify an existing mobile server. The record will not be saved due to a lock in the database. |
Proposed Solution | Make sure under all circumstances the connection is either commited or rolled back |
Additional Information | |
Tags | No tags attached. |
Relationships | depends on | backport | 0034767 | RR16Q4.1 | closed | Sandrahuguet | Transact left open leads to database locks when updating entries from the Mobile Server window | caused by | defect | 0033692 | RR16Q4 | closed | mtaal | Prevent NPE in case no mobile server definition present but still server key is set | has duplicate | defect | 0034173 | | closed | Sandrahuguet | Connection leak in SetCurrentMobileServerListener | has duplicate | defect | 0034967 | | closed | platform | the delete client process is not finishing |
|
Attached Files | |
|
Issue History |
Date Modified | Username | Field | Change |
2016-12-16 12:00 | AugustoMauch | New Issue | |
2016-12-16 12:00 | AugustoMauch | Assigned To | => Sandrahuguet |
2016-12-16 12:00 | AugustoMauch | OBNetwork customer | => No |
2016-12-16 12:00 | AugustoMauch | Triggers an Emergency Pack | => No |
2016-12-16 13:18 | hgbot | Checkin | |
2016-12-16 13:18 | hgbot | Note Added: 0092491 | |
2016-12-16 13:18 | hgbot | Status | new => resolved |
2016-12-16 13:18 | hgbot | Resolution | open => fixed |
2016-12-16 13:18 | hgbot | Fixed in SCM revision | => http://code.openbravo.com/erp/pmods/org.openbravo.mobile.core/rev/64da711454b7732e30477ac0598f9844442eb41d [^] |
2016-12-16 13:19 | AugustoMauch | Review Assigned To | => AugustoMauch |
2016-12-16 13:19 | AugustoMauch | Note Added: 0092492 | |
2016-12-16 13:19 | AugustoMauch | Status | resolved => closed |
2016-12-16 13:24 | Sandrahuguet | Regression level | => Production - QA Approved |
2016-12-16 13:24 | Sandrahuguet | Regression date | => 2016-08-19 |
2016-12-16 13:24 | Sandrahuguet | Regression introduced in release | => RR16Q4 |
2016-12-16 13:24 | Sandrahuguet | Regression introduced by commit | => https://code.openbravo.com/erp/pmods/org.openbravo.mobile.core/rev/6ccbd09b41f4 [^] |
2016-12-19 11:06 | Sandrahuguet | Status | closed => new |
2016-12-19 11:06 | Sandrahuguet | Resolution | fixed => open |
2016-12-19 11:12 | Sandrahuguet | Status | new => scheduled |
2016-12-19 11:16 | AugustoMauch | Summary | Transact left open leads to database locks when updating entries from the Mobile Server window => Transaction left open leads to database locks when updating entries from the Mobile Server window |
2016-12-19 11:18 | shuehner | Note Added: 0092762 | |
2016-12-19 11:19 | AugustoMauch | Status | scheduled => resolved |
2016-12-19 11:19 | AugustoMauch | Resolution | open => fixed |
2016-12-19 11:19 | AugustoMauch | Status | resolved => closed |
2016-12-20 09:29 | dmitry_mezentsev | Relationship added | caused by 0033692 |
2017-01-03 16:35 | Sandrahuguet | Relationship added | duplicate of 0034173 |
2017-01-03 16:36 | Sandrahuguet | Relationship replaced | has duplicate 0034173 |
2017-01-16 16:20 | caristu | Relationship added | has duplicate 0034967 |