Openbravo Issue Tracking System - Retail Modules |
View Issue Details |
|
ID | Project | Category | View Status | Date Submitted | Last Update |
0034450 | Retail Modules | StoreServer | public | 2016-11-09 13:43 | 2016-11-12 17:19 |
|
Reporter | mtaal | |
Assigned To | mtaal | |
Priority | normal | Severity | major | Reproducibility | have not tried |
Status | closed | Resolution | fixed | |
Platform | | OS | 5 | OS Version | |
Product Version | | |
Target Version | RR17Q1 | Fixed in Version | | |
Merge Request Status | |
Review Assigned To | AugustoMauch |
OBNetwork customer | No |
Support ticket | |
Regression level | |
Regression date | |
Regression introduced in release | |
Regression introduced by commit | |
Triggers an Emergency Pack | No |
|
Summary | 0034450: MultiServerJSONSymmetricDSStarter should use thread.start instead of thread.run |
Description | See the code [1] here, it uses the run method. The run method blocks and waits for the runnable to finish executing. This was not the intention here. The intention here was to start a separate thread.
[1]
https://code.openbravo.com/erp/pmods/org.openbravo.retail.storeserver.synchronization/file/517c35b6e4c5/src/org/openbravo/retail/storeserver/synchronization/MultiServerJSONSymmetricDSStarter.java#l66 [^] |
Steps To Reproduce | Put timing log statements (System.err.println(System.currentTimeMillis()) in the doAction method. It will show a 1-2 seconds delay for executing the run method. |
Proposed Solution | Use thread.start instead of thread.run |
Additional Information | |
Tags | No tags attached. |
Relationships | |
Attached Files | |
|
Issue History |
Date Modified | Username | Field | Change |
2016-11-09 13:43 | mtaal | New Issue | |
2016-11-09 13:43 | mtaal | Assigned To | => mtaal |
2016-11-09 13:43 | mtaal | OBNetwork customer | => No |
2016-11-09 13:43 | mtaal | Triggers an Emergency Pack | => No |
2016-11-09 13:50 | hgbot | Checkin | |
2016-11-09 13:50 | hgbot | Note Added: 0091280 | |
2016-11-09 13:50 | hgbot | Status | new => resolved |
2016-11-09 13:50 | hgbot | Resolution | open => fixed |
2016-11-09 13:50 | hgbot | Fixed in SCM revision | => http://code.openbravo.com/erp/pmods/org.openbravo.retail.storeserver.synchronization/rev/24ecfabd909ef0f7e4c4e6cd3e8d38929bf25f2b [^] |
2016-11-09 13:51 | mtaal | Review Assigned To | => AugustoMauch |
2016-11-12 17:19 | AugustoMauch | Note Added: 0091411 | |
2016-11-12 17:19 | AugustoMauch | Status | resolved => closed |