Openbravo Issue Tracking System - Openbravo ERP |
View Issue Details |
|
ID | Project | Category | View Status | Date Submitted | Last Update |
0039672 | Openbravo ERP | 09. Financial management | public | 2018-11-22 09:39 | 2018-12-13 00:22 |
|
Reporter | Sandrahuguet | |
Assigned To | Sandrahuguet | |
Priority | normal | Severity | minor | Reproducibility | have not tried |
Status | closed | Resolution | fixed | |
Platform | | OS | 30 | OS Version | Openbravo Appliance 14.04 |
Product Version | | |
Target Version | | Fixed in Version | 3.0PR19Q1 | |
Merge Request Status | |
Review Assigned To | vmromanos |
OBNetwork customer | No |
Web browser | |
Modules | Core |
Support ticket | |
Regression level | Production - Confirmed Stable |
Regression date | 2017-03-11 |
Regression introduced in release | 3.0PR17Q2 |
Regression introduced by commit | https://code.openbravo.com/erp/devel/pi/rev/498699b38a5d0ddb368c9be379e25eb2732ee091 [^] |
Triggers an Emergency Pack | No |
|
Summary | 0039672: Improve contention problems in fin_financial_account |
Description | In order to avoid concurrency problems when the current balance is calculated a lock was added in issue 35137. This lock is necessary, but is possible to reduce the lock and calculate the current balance at the end of the process. |
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
|
Proposed Solution | |
Additional Information | |
Tags | Performance |
Relationships | related to | defect | 0035137 | | closed | AtulOpenbravo | Concurrency problem: current balance wrongly calculated when 2 transactions are processed at same time | depends on | backport | 0039753 | 3.0PR18Q4.1 | closed | Sandrahuguet | Improve contention problems in fin_financial_account | depends on | backport | 0039754 | 3.0PR18Q3.4 | closed | Sandrahuguet | Improve contention problems in fin_financial_account | depends on | defect | 0039755 | | closed | Sandrahuguet | It would be nice to have a method to use lock "FOR NO KEY UPDATE" | related to | defect | 0039717 | | closed | alostale | unnecesary contention to create new documents in UI |
|
Attached Files | improveLocksTransactionProcess.diff (4,729) 2018-11-22 09:54 https://issues.openbravo.com/file_download.php?file_id=12379&type=bug |
|
Issue History |
Date Modified | Username | Field | Change |
2018-11-22 09:39 | Sandrahuguet | New Issue | |
2018-11-22 09:39 | Sandrahuguet | Assigned To | => Triage Finance |
2018-11-22 09:39 | Sandrahuguet | OBNetwork customer | => No |
2018-11-22 09:39 | Sandrahuguet | Modules | => Core |
2018-11-22 09:39 | Sandrahuguet | Triggers an Emergency Pack | => No |
2018-11-22 09:53 | Sandrahuguet | Steps to Reproduce Updated | bug_revision_view_page.php?rev_id=17949#r17949 |
2018-11-22 09:54 | Sandrahuguet | Relationship added | related to 0035137 |
2018-11-22 09:54 | Sandrahuguet | Tag Attached: Performance | |
2018-11-22 09:54 | Sandrahuguet | File Added: improveLocksTransactionProcess.diff | |
2018-11-29 11:51 | alostale | Issue Monitored: alostale | |
2018-11-29 12:17 | alostale | Relationship added | related to 0039717 |
2018-11-30 16:07 | galderromo | Issue Monitored: galderromo | |
2018-12-03 13:04 | alostale | Note Added: 0108224 | |
2018-12-04 15:10 | Sandrahuguet | Regression level | => Production - Confirmed Stable |
2018-12-04 15:10 | Sandrahuguet | Regression date | => 2017-03-11 |
2018-12-04 15:10 | Sandrahuguet | Regression introduced in release | => 3.0PR17Q2 |
2018-12-04 15:10 | Sandrahuguet | Regression introduced by commit | => https://code.openbravo.com/erp/devel/pi/rev/498699b38a5d0ddb368c9be379e25eb2732ee091 [^] |
2018-12-04 15:14 | Sandrahuguet | Status | new => scheduled |
2018-12-04 15:28 | Sandrahuguet | Relationship added | depends on 0039755 |
2018-12-04 15:29 | Sandrahuguet | Assigned To | Triage Finance => Sandrahuguet |
2018-12-05 13:19 | Sandrahuguet | Review Assigned To | => vmromanos |
2018-12-05 15:21 | Sandrahuguet | Target Version | 3.0PR19Q2 => |
2018-12-05 15:21 | hgbot | Checkin | |
2018-12-05 15:21 | hgbot | Note Added: 0108284 | |
2018-12-05 15:21 | hgbot | Status | scheduled => resolved |
2018-12-05 15:21 | hgbot | Resolution | open => fixed |
2018-12-05 15:21 | hgbot | Fixed in SCM revision | => http://code.openbravo.com/erp/devel/pi/rev/708c5c4d51a03e583ff99b46dd4e6484f7771be2 [^] |
2018-12-05 15:22 | hgbot | Checkin | |
2018-12-05 15:22 | hgbot | Note Added: 0108286 | |
2018-12-05 17:23 | hgbot | Checkin | |
2018-12-05 17:23 | hgbot | Note Added: 0108299 | |
2018-12-05 17:49 | Sandrahuguet | Note Added: 0108301 | |
2018-12-05 17:49 | Sandrahuguet | Note Edited: 0108301 | bug_revision_view_page.php?bugnote_id=0108301#r18004 |
2018-12-05 17:49 | Sandrahuguet | Note Added: 0108302 | |
2018-12-05 17:50 | Sandrahuguet | Status | resolved => new |
2018-12-05 17:50 | Sandrahuguet | Resolution | fixed => open |
2018-12-11 08:12 | hgbot | Checkin | |
2018-12-11 08:12 | hgbot | Note Added: 0108380 | |
2018-12-11 08:12 | hgbot | Status | new => resolved |
2018-12-11 08:12 | hgbot | Resolution | open => fixed |
2018-12-11 08:12 | hgbot | Fixed in SCM revision | http://code.openbravo.com/erp/devel/pi/rev/708c5c4d51a03e583ff99b46dd4e6484f7771be2 [^] => http://code.openbravo.com/erp/devel/pi/rev/05948dd8851c32fb2292e70b7d13ac22e46408ed [^] |
2018-12-11 15:38 | hgbot | Checkin | |
2018-12-11 15:38 | hgbot | Note Added: 0108396 | |
2018-12-11 15:38 | hgbot | Checkin | |
2018-12-11 15:38 | hgbot | Note Added: 0108397 | |
2018-12-11 20:22 | hudsonbot | Checkin | |
2018-12-11 20:22 | hudsonbot | Note Added: 0108512 | |
2018-12-11 20:22 | hudsonbot | Checkin | |
2018-12-11 20:22 | hudsonbot | Note Added: 0108514 | |
2018-12-11 20:22 | hudsonbot | Checkin | |
2018-12-11 20:22 | hudsonbot | Note Added: 0108516 | |
2018-12-11 20:23 | hudsonbot | Checkin | |
2018-12-11 20:23 | hudsonbot | Note Added: 0108518 | |
2018-12-11 20:23 | hudsonbot | Checkin | |
2018-12-11 20:23 | hudsonbot | Note Added: 0108519 | |
2018-12-11 20:23 | hudsonbot | Checkin | |
2018-12-11 20:23 | hudsonbot | Note Added: 0108520 | |
2018-12-12 16:33 | vmromanos | Note Added: 0108556 | |
2018-12-12 16:33 | vmromanos | Status | resolved => closed |
2018-12-12 16:33 | vmromanos | Fixed in Version | => 3.0PR19Q1 |
2018-12-12 16:35 | hgbot | Checkin | |
2018-12-12 16:35 | hgbot | Note Added: 0108557 | |
2018-12-13 00:22 | hudsonbot | Checkin | |
2018-12-13 00:22 | hudsonbot | Note Added: 0108560 | |
Notes |
|
|
|
|
(0108284)
|
hgbot
|
2018-12-05 15:21
|
|
Repository: erp/devel/pi
Changeset: 708c5c4d51a03e583ff99b46dd4e6484f7771be2
Author: Sandra Huguet <sandra.huguet <at> openbravo.com>
Date: Tue Dec 04 15:36:12 2018 +0100
URL: http://code.openbravo.com/erp/devel/pi/rev/708c5c4d51a03e583ff99b46dd4e6484f7771be2 [^]
Fixed issue 39672 reduce lock and calculate the current balance at the end of the process
---
M modules/org.openbravo.advpaymentmngt/src/org/openbravo/advpaymentmngt/process/FIN_TransactionProcess.java
---
|
|
|
(0108286)
|
hgbot
|
2018-12-05 15:22
|
|
Repository: erp/devel/pi
Changeset: 26214ce6e789130bfd273174483df8a6ffd4a26d
Author: Sandra Huguet <sandra.huguet <at> openbravo.com>
Date: Tue Dec 04 15:47:59 2018 +0100
URL: http://code.openbravo.com/erp/devel/pi/rev/26214ce6e789130bfd273174483df8a6ffd4a26d [^]
related to issue 39672 use lockForNoKeyUpdate instead of lockFinAccount
Use lockForNoKeyUpdate instead of use lockFinAccount in which a
"FOR UPDATE" is done and is too agressive.
---
M modules/org.openbravo.advpaymentmngt/src/org/openbravo/advpaymentmngt/process/FIN_TransactionProcess.java
---
|
|
|
(0108299)
|
hgbot
|
2018-12-05 17:23
|
|
Repository: erp/devel/pi
Changeset: 58849d9510ba5629235d2f90d4076217cf3a52da
Author: Sandra Huguet <sandra.huguet <at> openbravo.com>
Date: Wed Dec 05 17:23:37 2018 +0100
URL: http://code.openbravo.com/erp/devel/pi/rev/58849d9510ba5629235d2f90d4076217cf3a52da [^]
related to issue 39672 lockForNoKeyUpdate not returns the id
---
M modules/org.openbravo.advpaymentmngt/src/org/openbravo/advpaymentmngt/process/FIN_TransactionProcess.java
---
|
|
|
|
|
|
|
|
|
(0108380)
|
hgbot
|
2018-12-11 08:12
|
|
Repository: erp/devel/pi
Changeset: 05948dd8851c32fb2292e70b7d13ac22e46408ed
Author: Sandra Huguet <sandra.huguet <at> openbravo.com>
Date: Mon Dec 10 16:29:15 2018 +0100
URL: http://code.openbravo.com/erp/devel/pi/rev/05948dd8851c32fb2292e70b7d13ac22e46408ed [^]
fixed issue 39672 use the new method getObjectLockForNoKeyUpdate
---
M modules/org.openbravo.advpaymentmngt/src/org/openbravo/advpaymentmngt/process/FIN_TransactionProcess.java
---
|
|
|
(0108396)
|
hgbot
|
2018-12-11 15:38
|
|
|
|
(0108397)
|
hgbot
|
2018-12-11 15:38
|
|
Repository: erp/devel/pi
Changeset: 7e4c318ad6a32159a18d3de6a070cd12f6705217
Author: Asier Lostalé <asier.lostale <at> openbravo.com>
Date: Tue Dec 11 15:37:30 2018 +0100
URL: http://code.openbravo.com/erp/devel/pi/rev/7e4c318ad6a32159a18d3de6a070cd12f6705217 [^]
related to issue 39672: added test cases
---
M src-test/src/org/openbravo/test/AllAntTaskTests.java
A src-test/src/org/openbravo/test/dal/DalLockingTest.java
---
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
(0108557)
|
hgbot
|
2018-12-12 16:35
|
|
Repository: erp/devel/pi
Changeset: 2677dcb9a82a97709cb3f6882f536db85d92b552
Author: Víctor Martínez Romanos <victor.martinez <at> openbravo.com>
Date: Wed Dec 12 16:35:23 2018 +0100
URL: http://code.openbravo.com/erp/devel/pi/rev/2677dcb9a82a97709cb3f6882f536db85d92b552 [^]
Related to issue 39672: removed extra blank line
---
M modules/org.openbravo.advpaymentmngt/src/org/openbravo/advpaymentmngt/process/FIN_TransactionProcess.java
---
|
|
|
|
|