Openbravo Issue Tracking System - POS2 | ||||||||||||
View Issue Details | ||||||||||||
ID | Project | Category | View Status | Date Submitted | Last Update | |||||||
0049873 | POS2 | POS | public | 2022-07-24 19:21 | 2022-08-23 14:40 | |||||||
Reporter | guilleaer | |||||||||||
Assigned To | guilleaer | |||||||||||
Priority | normal | Severity | critical | Reproducibility | have not tried | |||||||
Status | closed | Resolution | fixed | |||||||||
Platform | OS | 5 | OS Version | |||||||||
Product Version | ||||||||||||
Target Version | Fixed in Version | 22Q4 | ||||||||||
Merge Request Status | approved | |||||||||||
Review Assigned To | ||||||||||||
OBNetwork customer | No | |||||||||||
Support ticket | ||||||||||||
Regression level | ||||||||||||
Regression date | ||||||||||||
Regression introduced in release | ||||||||||||
Regression introduced by commit | ||||||||||||
Triggers an Emergency Pack | No | |||||||||||
Summary | 0049873: A mechanism to detect incorrect state recovery from persistence layer is required | |||||||||||
Description | After investigating some sequence breaks in customer production environment we suspect that sometimes the state recovery from persistence layer to the state (when f5 is done) is not working well. Because of that, the sequence stored in the terminal object is greater than the sequence recovered in the state and the sequence of the terminal overwrites the one from the state State 20 Terminal 20 Sale 1 State 21 Terminal 20 Sale 2 State 22 Terminal 20 f5 is pressed For some reason a preious state is recovered an now is the new state State 19 Terminal 20 In this situation a pieze of code is executed. Since terminal is > to state the new seq in the state is 20 Sale 3 State 20 Terminal 20 DUPLICATED! Sale 4 State 22 Terminal 20 DUPLICATED! To be able to find more information we need a mechanism to ensure that the state that we recover is the same state that we saved lastly | |||||||||||
Steps To Reproduce | N/A | |||||||||||
Proposed Solution | When an order is completed generate a unique UUID in one model which is persisted (docSequence) When the state is recovered form persistance layer -> log the recovered ID If we found cases in which the recovered UUID is different from the Last saved UUID then we know that we have a problem in the process to save/restore the state | |||||||||||
Additional Information | ||||||||||||
Tags | No tags attached. | |||||||||||
Relationships |
| |||||||||||
Attached Files | ||||||||||||
Issue History | ||||||||||||
Date Modified | Username | Field | Change | |||||||||
2022-07-24 19:21 | guilleaer | New Issue | ||||||||||
2022-07-24 19:21 | guilleaer | Assigned To | => Retail | |||||||||
2022-07-24 19:21 | guilleaer | OBNetwork customer | => No | |||||||||
2022-07-24 19:21 | guilleaer | Triggers an Emergency Pack | => No | |||||||||
2022-07-24 19:30 | hgbot | Merge Request Status | => open | |||||||||
2022-07-24 19:30 | hgbot | Note Added: 0139561 | ||||||||||
2022-07-24 19:31 | hgbot | Note Added: 0139562 | ||||||||||
2022-07-24 19:31 | guilleaer | Status | new => scheduled | |||||||||
2022-07-24 19:31 | guilleaer | Assigned To | Retail => guilleaer | |||||||||
2022-07-26 08:21 | javietxe | Issue Monitored: javietxe | ||||||||||
2022-08-02 00:20 | hgbot | Merge Request Status | open => approved | |||||||||
2022-08-02 00:22 | hgbot | Resolution | open => fixed | |||||||||
2022-08-02 00:22 | hgbot | Status | scheduled => closed | |||||||||
2022-08-02 00:22 | hgbot | Fixed in Version | => 22Q4 | |||||||||
2022-08-02 00:22 | hgbot | Note Added: 0139781 | ||||||||||
2022-08-02 00:22 | hgbot | Note Added: 0139782 | ||||||||||
2022-08-02 00:24 | hgbot | Note Added: 0139783 | ||||||||||
2022-08-02 00:24 | hgbot | Note Added: 0139784 | ||||||||||
2022-08-03 14:29 | hgbot | Fixed in Version | 22Q4 => 22Q3 | |||||||||
2022-08-03 14:29 | hgbot | Note Added: 0139843 | ||||||||||
2022-08-03 14:29 | hgbot | Note Added: 0139844 | ||||||||||
2022-08-23 14:39 | guilleaer | Note Deleted: 0139844 | ||||||||||
2022-08-23 14:39 | guilleaer | Note Deleted: 0139843 | ||||||||||
2022-08-23 14:40 | guilleaer | Fixed in Version | 22Q3 => 22Q4 |
Notes | |||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|