Openbravo Issue Tracking System - Retail Modules | ||||||||||||
View Issue Details | ||||||||||||
ID | Project | Category | View Status | Date Submitted | Last Update | |||||||
0036357 | Retail Modules | StoreServer | public | 2017-06-27 11:04 | 2017-06-29 12:23 | |||||||
Reporter | AugustoMauch | |||||||||||
Assigned To | mtaal | |||||||||||
Priority | normal | Severity | major | 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 | 0036357: If the OBSTSYN_SERVER_MODULE is empty in the store server, force its population | |||||||||||
Description | When a store server is going to compare its module versions to those of the central server, it looks for the central server versions in the OBSTSYN_SERVER_MODULE table. If the table is empty, then it assumes the module versions are different, and the store server is put offline. It is very easy to reproduce this, just by updating to this changeset [1]. I think it is better to proactively request the missing info to the central server instead of forcing to re-export the store server data. [1] https://code.openbravo.com/erp/pmods/org.openbravo.retail.storeserver.synchronization/rev/b119473822cb [^] | |||||||||||
Steps To Reproduce | In any multiserver environment - Update the [1] module to this changeset [2] in both central and store servers. - When they start, the store server will go offline because its OBSTSYN_SERVER_MODULE will not contain the records related with the central server. This already happened in CI: [3], look for "Transition to online failed because of handlers: Incompatible versions with Central Server" [1] https://code.openbravo.com/erp/pmods/org.openbravo.retail.storeserver.synchronization [^] [2] https://code.openbravo.com/erp/pmods/org.openbravo.retail.storeserver.synchronization/rev/b119473822cb [^] [3] http://ci.openbravo.com/view/storeserver/job/ret-ms-store2-pgsql/492/console [^] | |||||||||||
Proposed Solution | When Tomcat is started in the store server, check if the OBSTSYN_SERVER_MODULE table contains rows for the Central Server. If not, retrieve them either by: - Updating them in the central server so that they are refreshed in all store server or - Send that info in the request response, so that only the store server that did not have this data will receive it | |||||||||||
Additional Information | ||||||||||||
Tags | No tags attached. | |||||||||||
Relationships |
| |||||||||||
Attached Files | ||||||||||||
Issue History | ||||||||||||
Date Modified | Username | Field | Change | |||||||||
2017-06-27 11:04 | AugustoMauch | New Issue | ||||||||||
2017-06-27 11:04 | AugustoMauch | Assigned To | => mtaal | |||||||||
2017-06-27 11:04 | AugustoMauch | Triggers an Emergency Pack | => No | |||||||||
2017-06-27 11:04 | AugustoMauch | Relationship added | related to 0035819 | |||||||||
2017-06-27 11:05 | AugustoMauch | Steps to Reproduce Updated | bug_revision_view_page.php?rev_id=15428#r15428 | |||||||||
2017-06-27 18:50 | hgbot | Checkin | ||||||||||
2017-06-27 18:50 | hgbot | Note Added: 0097716 | ||||||||||
2017-06-27 18:50 | hgbot | Status | new => resolved | |||||||||
2017-06-27 18:50 | hgbot | Resolution | open => fixed | |||||||||
2017-06-27 18:50 | hgbot | Fixed in SCM revision | => http://code.openbravo.com/erp/pmods/org.openbravo.retail.storeserver.synchronization/rev/158855ed844fe259e8f4d562eeb8f90cee12e97e [^] | |||||||||
2017-06-27 18:50 | mtaal | Review Assigned To | => AugustoMauch | |||||||||
2017-06-27 18:51 | mtaal | Note Added: 0097717 | ||||||||||
2017-06-29 12:23 | AugustoMauch | Note Added: 0097759 | ||||||||||
2017-06-29 12:23 | AugustoMauch | Status | resolved => closed | |||||||||
2017-06-29 12:23 | AugustoMauch | Fixed in Version | => RR17Q3 |
Notes | |||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|