Project:
View Issue Details[ Jump to Notes ] | [ Issue History ] [ Print ] | |||||||
ID | ||||||||
0039756 | ||||||||
Type | Category | Severity | Reproducibility | Date Submitted | Last Update | |||
backport | [Openbravo ERP] I. Performance | major | have not tried | 2018-12-04 15:26 | 2018-12-12 10:52 | |||
Reporter | Sandrahuguet | View Status | public | |||||
Assigned To | Sandrahuguet | |||||||
Priority | normal | Resolution | fixed | Fixed in Version | 3.0PR18Q4.1 | |||
Status | closed | Fix in branch | Fixed in SCM revision | 440fd243a83c | ||||
Projection | none | ETA | none | Target Version | 3.0PR18Q4.1 | |||
OS | Linux 64 bit | Database | PostgreSQL | Java version | 7.x | |||
OS Version | Openbravo Appliance 14.04 | Database version | 9.3.x | Ant version | 1.9.x | |||
Product Version | SCM revision | |||||||
Merge Request Status | ||||||||
Review Assigned To | alostale | |||||||
OBNetwork customer | No | |||||||
Web browser | ||||||||
Modules | Core | |||||||
Support ticket | ||||||||
Regression level | ||||||||
Regression date | ||||||||
Regression introduced in release | ||||||||
Regression introduced by commit | ||||||||
Triggers an Emergency Pack | No | |||||||
Summary | 0039756: It would be nice to have a method to use lock "FOR NO KEY UPDATE" | |||||||
Description | It would be nice to have a method to use lock "FOR NO KEY UPDATE", because "FOR UPDATE" in PostgreSQL is too aggressive. | |||||||
Steps To Reproduce | - In order to easily simulate the 2 transactions are processed at same time it is necessary to set a break-point just after execution of following code : financialAccount.setCurrentBalance(financialAccount.getCurrentBalance().subtract(transaction.getDepositAmount()).add(transaction.getPaymentAmount())); - Go to Payment In and create a payment: Organization: F&B España - Region Norte Received From: Alimentos y Supermercados, S.A Payment Method: Transferencia Deposit To: Cuenta de Banco - EUR Amount: 100 In Add details - > Overpayment Action: Leave the credit to be used later Done and execution should be stopped in previous break-point - Open "new incognito window" in Chrome and access Go to Payment In and create a new payment: Organization: F&B España - Region Norte Received From: Restaurantes Luna Llena, S.A. Payment Method: Transferencia Deposit To: Cuenta de Banco - EUR Amount: 200 Click in add details, the popup does not open, save the header is locked | |||||||
Tags | No tags attached. | |||||||
Attached Files | ||||||||
![]() |
||||||||
|
![]() |
|
(0108291) hgbot (developer) 2018-12-05 15:23 |
Repository: erp/backports/3.0PR18Q4 Changeset: 0e09c8a5cee903551e3baf65527488f99735fc87 Author: Sandra Huguet <sandra.huguet <at> openbravo.com> Date: Wed Dec 05 13:05:11 2018 +0100 URL: http://code.openbravo.com/erp/backports/3.0PR18Q4/rev/0e09c8a5cee903551e3baf65527488f99735fc87 [^] Fixed issue 39756 added in OBDAL lockForNoKeyUpdate new lockForNoKeyUpdate method to allow the use "FOR NO KEY UPDATE", because "FOR UPDATE" in PostgreSQL is too aggressive. --- M src/org/openbravo/dal/service/OBDal.java --- |
(0108304) hgbot (developer) 2018-12-05 17:51 |
Repository: erp/backports/3.0PR18Q4 Changeset: f1af76aa3011f405abb27c4369e08be7358d761d Author: Sandra Huguet <sandra.huguet <at> openbravo.com> Date: Wed Dec 05 17:17:46 2018 +0100 URL: http://code.openbravo.com/erp/backports/3.0PR18Q4/rev/f1af76aa3011f405abb27c4369e08be7358d761d [^] related to issue 39756 code review changes Not necessary to return the id. Only creates the lock. Use createNativeQuery and improve code. --- M src/org/openbravo/dal/service/OBDal.java --- |
(0108330) hgbot (developer) 2018-12-07 13:27 |
Repository: erp/backports/3.0PR18Q4 Changeset: 3d8b55861a9d3dd8be4ade1e832af837b89d015b Author: Atul Gaware <atul.gaware <at> openbravo.com> Date: Fri Dec 07 17:26:33 2018 +0530 URL: http://code.openbravo.com/erp/backports/3.0PR18Q4/rev/3d8b55861a9d3dd8be4ade1e832af837b89d015b [^] Related to Issue 39756:Backout Changeset f1af76aa3011 --- M src/org/openbravo/dal/service/OBDal.java --- |
(0108331) hgbot (developer) 2018-12-07 13:27 |
Repository: erp/backports/3.0PR18Q4 Changeset: 054cdd2866d0cb1a8f7fb9292c43c816d5d5689e Author: Atul Gaware <atul.gaware <at> openbravo.com> Date: Fri Dec 07 17:28:01 2018 +0530 URL: http://code.openbravo.com/erp/backports/3.0PR18Q4/rev/054cdd2866d0cb1a8f7fb9292c43c816d5d5689e [^] Related TO Issue 39756: Backout changeset 0e09c8a5cee9 --- M src/org/openbravo/dal/service/OBDal.java --- |
(0108332) AtulOpenbravo (viewer) 2018-12-07 13:29 |
Re-opened as fixes were backout. It will be pushed in Q4.1 |
(0108407) hgbot (developer) 2018-12-11 17:24 |
Repository: erp/backports/3.0PR18Q4.1 Changeset: 440fd243a83c7aa04d3f2666cd5ea79376869147 Author: Sandra Huguet <sandra.huguet <at> openbravo.com> Date: Tue Dec 11 17:15:41 2018 +0100 URL: http://code.openbravo.com/erp/backports/3.0PR18Q4.1/rev/440fd243a83c7aa04d3f2666cd5ea79376869147 [^] fixed issue 39756 change lockForNoKeyUpdate to return the instance with the lock *Retrieves an object from the database getting a lock "for no key update" for the indicated object. Change method name, parameters and return. *Improve and modify the javadoc with the required changes. --- M src/org/openbravo/dal/service/OBDal.java --- |
(0108543) alostale (viewer) 2018-12-12 10:52 |
reviewed + tested |
![]() |
|||
Date Modified | Username | Field | Change |
2018-12-04 15:29 | Sandrahuguet | Type | defect => backport |
2018-12-04 15:29 | Sandrahuguet | Target Version | => 3.0PR18Q4 |
2018-12-05 13:20 | Sandrahuguet | Review Assigned To | => alostale |
2018-12-05 15:23 | hgbot | Checkin | |
2018-12-05 15:23 | hgbot | Note Added: 0108291 | |
2018-12-05 15:23 | hgbot | Status | scheduled => resolved |
2018-12-05 15:23 | hgbot | Resolution | open => fixed |
2018-12-05 15:23 | hgbot | Fixed in SCM revision | => http://code.openbravo.com/erp/backports/3.0PR18Q4/rev/0e09c8a5cee903551e3baf65527488f99735fc87 [^] |
2018-12-05 17:51 | hgbot | Checkin | |
2018-12-05 17:51 | hgbot | Note Added: 0108304 | |
2018-12-07 11:29 | shuehner | Target Version | 3.0PR18Q4 => 3.0PR18Q4.1 |
2018-12-07 13:27 | hgbot | Checkin | |
2018-12-07 13:27 | hgbot | Note Added: 0108330 | |
2018-12-07 13:27 | hgbot | Checkin | |
2018-12-07 13:27 | hgbot | Note Added: 0108331 | |
2018-12-07 13:28 | AtulOpenbravo | Status | resolved => new |
2018-12-07 13:28 | AtulOpenbravo | Resolution | fixed => open |
2018-12-07 13:29 | AtulOpenbravo | Note Added: 0108332 | |
2018-12-11 17:24 | hgbot | Checkin | |
2018-12-11 17:24 | hgbot | Note Added: 0108407 | |
2018-12-11 17:24 | hgbot | Status | new => resolved |
2018-12-11 17:24 | hgbot | Resolution | open => fixed |
2018-12-11 17:24 | hgbot | Fixed in SCM revision | http://code.openbravo.com/erp/backports/3.0PR18Q4/rev/0e09c8a5cee903551e3baf65527488f99735fc87 [^] => http://code.openbravo.com/erp/backports/3.0PR18Q4.1/rev/440fd243a83c7aa04d3f2666cd5ea79376869147 [^] |
2018-12-12 10:52 | alostale | Note Added: 0108543 | |
2018-12-12 10:52 | alostale | Status | resolved => closed |
2018-12-12 10:52 | alostale | Fixed in Version | => 3.0PR18Q4.1 |
Copyright © 2000 - 2009 MantisBT Group |