Project:
View Issue Details[ Jump to Notes ] | [ Issue History ] [ Print ] | |||||||
ID | ||||||||
0037601 | ||||||||
Type | Category | Severity | Reproducibility | Date Submitted | Last Update | |||
defect | [Openbravo ERP] A. Platform | major | always | 2018-01-09 08:05 | 2018-02-22 18:18 | |||
Reporter | alostale | View Status | public | |||||
Assigned To | alostale | |||||||
Priority | urgent | Resolution | fixed | Fixed in Version | 3.0PR18Q2 | |||
Status | closed | Fix in branch | Fixed in SCM revision | d0f17b56bf6e | ||||
Projection | none | ETA | none | Target Version | ||||
OS | Any | Database | Any | Java version | ||||
OS Version | Database version | Ant version | ||||||
Product Version | SCM revision | |||||||
Merge Request Status | ||||||||
Review Assigned To | caristu | |||||||
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 | 0037601: log in causes contention in other requests | |||||||
Description | While OBContext is being initialized, that occurs during the back office log in process, any other request is not processed till it finishes. | |||||||
Steps To Reproduce | 0. To simulate slowness in OBContext initialization, apply attached diff. 1. Log in back office -> Note in openbravo.log appears "waiting" for 20 secons 2. During those 20 seconds, in another browser try to perform any operation (such as loading login page) -> ERROR: it gets frozen until the login has completed. | |||||||
Tags | Performance | |||||||
Attached Files | ![]() | |||||||
![]() |
|
![]() |
|
(0101628) hgbot (developer) 2018-01-09 08:21 |
Repository: erp/devel/pi Changeset: d0f17b56bf6e9b28cfdd8fbe01777682b2846fbd Author: Asier Lostalé <asier.lostale <at> openbravo.com> Date: Mon Jan 08 18:25:25 2018 +0100 URL: http://code.openbravo.com/erp/devel/pi/rev/d0f17b56bf6e9b28cfdd8fbe01777682b2846fbd [^] fixed bug 37601: log in causes contention in other requests OBContext.setOBContext static method was synchronized, it was invoked from DAL request filter at the begining of every requests causing contention. This method is also invoked during the log in process to intialize OBContext, if initalization takes time, it can cause severe contention issues. Now the synchronization occurs at session level so that 2 paralell requests for the same session are synchronized but any other request from other sessions is not. --- M src/org/openbravo/dal/core/OBContext.java --- |
(0101801) caristu (viewer) 2018-01-19 14:45 |
Reviewed |
(0102650) hudsonbot (viewer) 2018-02-22 18:18 |
A changeset related to this issue has been promoted main and to the Central Repository, after passing a series of tests. Promotion changeset: https://code.openbravo.com/erp/devel/main/rev/980a6ad5bbf5 [^] Maturity status: Test |
![]() |
|||
Date Modified | Username | Field | Change |
2018-01-09 08:05 | alostale | New Issue | |
2018-01-09 08:05 | alostale | Assigned To | => platform |
2018-01-09 08:05 | alostale | OBNetwork customer | => No |
2018-01-09 08:05 | alostale | Modules | => Core |
2018-01-09 08:05 | alostale | Triggers an Emergency Pack | => No |
2018-01-09 08:06 | alostale | Summary | back office login causes contention in other requests => log in causes contention in other requests |
2018-01-09 08:10 | alostale | File Added: slow-37601.diff | |
2018-01-09 08:12 | alostale | Tag Attached: Performance | |
2018-01-09 08:12 | alostale | Review Assigned To | => caristu |
2018-01-09 08:12 | alostale | Assigned To | platform => alostale |
2018-01-09 08:21 | hgbot | Checkin | |
2018-01-09 08:21 | hgbot | Note Added: 0101628 | |
2018-01-09 08:21 | hgbot | Status | new => resolved |
2018-01-09 08:21 | hgbot | Resolution | open => fixed |
2018-01-09 08:21 | hgbot | Fixed in SCM revision | => http://code.openbravo.com/erp/devel/pi/rev/d0f17b56bf6e9b28cfdd8fbe01777682b2846fbd [^] |
2018-01-19 14:45 | caristu | Note Added: 0101801 | |
2018-01-19 14:45 | caristu | Status | resolved => closed |
2018-01-19 14:45 | caristu | Fixed in Version | => 3.0PR18Q1 |
2018-01-22 11:17 | caristu | Fixed in Version | 3.0PR18Q1 => 3.0PR18Q2 |
2018-02-22 18:18 | hudsonbot | Checkin | |
2018-02-22 18:18 | hudsonbot | Note Added: 0102650 |
Copyright © 2000 - 2009 MantisBT Group |