Openbravo Issue Tracking System - Retail Modules |
View Issue Details |
|
ID | Project | Category | View Status | Date Submitted | Last Update |
0035767 | Retail Modules | StoreServer | public | 2017-04-12 12:13 | 2017-05-15 09:14 |
|
Reporter | AugustoMauch | |
Assigned To | mtaal | |
Priority | normal | Severity | minor | Reproducibility | have not tried |
Status | closed | Resolution | fixed | |
Platform | | OS | 5 | OS Version | |
Product Version | | |
Target Version | | Fixed in Version | RR17Q3 | |
Merge Request Status | |
Review Assigned To | AugustoMauch |
OBNetwork customer | |
Support ticket | |
Regression level | |
Regression date | |
Regression introduced in release | |
Regression introduced by commit | |
Triggers an Emergency Pack | No |
|
Summary | 0035767: Review synchronized methods in mobile.core, some of them may not be needed |
Description | The fix of this issue [1] removed a synchronized clause from a method to get rid of the contention is was being causing.
There are other synchronized methods that should be reviewed, maybe some of them are not needed anymore. For instance the synchronized clause of this method [2] would not be needed if the attribute was initialized eagerly.
Note that we must support a clustered environment, so a synchronized block cannot guarantee that a method is not executed concurrently in different application instances.
[1] https://issues.openbravo.com/view.php?id=35754 [^]
[2] https://code.openbravo.com/erp/pmods/org.openbravo.mobile.core/file/c0b32b2cd2e2/src/org/openbravo/mobile/core/servercontroller/MobileServerRequestExecutor.java#l214 [^] |
Steps To Reproduce | - |
Proposed Solution | |
Additional Information | |
Tags | No tags attached. |
Relationships | related to | defect | 0035754 | | closed | AugustoMauch | MobileServerController.getThisServerDefinition creates contention |
|
Attached Files | |
|
Issue History |
Date Modified | Username | Field | Change |
2017-04-12 12:13 | AugustoMauch | New Issue | |
2017-04-12 12:13 | AugustoMauch | Assigned To | => StoreServer |
2017-04-12 12:13 | AugustoMauch | Triggers an Emergency Pack | => No |
2017-04-12 12:13 | AugustoMauch | Relationship added | related to 0035754 |
2017-05-01 17:20 | mtaal | Assigned To | StoreServer => mtaal |
2017-05-06 09:13 | mtaal | Note Added: 0096433 | |
2017-05-06 09:17 | mtaal | Review Assigned To | => AugustoMauch |
2017-05-06 09:18 | mtaal | Status | new => acknowledged |
2017-05-06 09:18 | mtaal | Status | acknowledged => scheduled |
2017-05-06 09:18 | mtaal | Note Added: 0096435 | |
2017-05-06 09:18 | mtaal | Status | scheduled => resolved |
2017-05-06 09:18 | mtaal | Fixed in Version | => RR17Q3 |
2017-05-06 09:18 | mtaal | Resolution | open => fixed |
2017-05-08 09:09 | hgbot | Checkin | |
2017-05-08 09:09 | hgbot | Note Added: 0096446 | |
2017-05-08 09:11 | hgbot | Checkin | |
2017-05-08 09:11 | hgbot | Note Added: 0096447 | |
2017-05-15 09:12 | AugustoMauch | Description Updated | bug_revision_view_page.php?rev_id=15163#r15163 |
2017-05-15 09:14 | AugustoMauch | Note Added: 0096583 | |
2017-05-15 09:14 | AugustoMauch | Status | resolved => closed |
Notes |
|
(0096433)
|
mtaal
|
2017-05-06 09:13
|
|
See commit, also in clustered environments synchronized methods can make sense to initialize in-memory information in a correct way or preventing threads or other things to be started concurrently. |
|
|
(0096435)
|
mtaal
|
2017-05-06 09:18
|
|
|
|
(0096446)
|
hgbot
|
2017-05-08 09:09
|
|
|
|
(0096447)
|
hgbot
|
2017-05-08 09:11
|
|
|
|
|
Code reviewed and verified |
|