Openbravo Issue Tracking System - Retail Modules | ||||||||||||
View Issue Details | ||||||||||||
ID | Project | Category | View Status | Date Submitted | Last Update | |||||||
0035289 | Retail Modules | Web POS | public | 2017-02-16 18:39 | 2017-06-19 11:09 | |||||||
Reporter | inigoqz | |||||||||||
Assigned To | mtaal | |||||||||||
Priority | normal | Severity | major | Reproducibility | always | |||||||
Status | closed | Resolution | fixed | |||||||||
Platform | OS | 5 | OS Version | |||||||||
Product Version | ||||||||||||
Target Version | Fixed in Version | RR17Q3 | ||||||||||
Merge Request Status | ||||||||||||
Review Assigned To | marvintm | |||||||||||
OBNetwork customer | No | |||||||||||
Support ticket | ||||||||||||
Regression level | ||||||||||||
Regression date | ||||||||||||
Regression introduced in release | ||||||||||||
Regression introduced by commit | ||||||||||||
Triggers an Emergency Pack | No | |||||||||||
Summary | 0035289: BUT: Duplicate transaction in POS (already done) | |||||||||||
Description | Env: SS + Tomcat cluster + BUT synchonize mode environment. SS has a functionality to retry ticket creation in case it does not receive an OK. In a cluster environment, if we kill CS Apache + Tomcat in the node processing the ticket, SS will retry in another CS apach+Tomcat node. When SS retries to write the ticket, the previous transaction may have reached the DB and commit or not. If it has not been committed in DB, there is not problem at all, because SS retries until it gets and OK. But if previous transaction has been commited in DB and SS did not receive the OK message, the second time the record is already in database and USER in POS gets an " Duplicate transaction in POS (already done) " message | |||||||||||
Steps To Reproduce | Create first ticket in SS1 POS, will be directed in T1 trough LB (see /var/log/haproxy.log). Create 2nd ticket in in the same SS1, it will continue using T1 trough LB, but before pushing "Done" in the POS (start apache in T2) and after pushing "Done", stop apache T1 while processing ticket (remember we have set a sleep time). In LB see /var/log/haproxy.log, see the error and how the request “SynchronizedServerProcessCaller” is directed into T2. At POS user level the error could be: Completely transparent to the user If we stop t1 just a little bit later and the transaction is already in DB, we can receive a duplicate transaction in POS (already done) | |||||||||||
Proposed Solution | ||||||||||||
Additional Information | ||||||||||||
Tags | No tags attached. | |||||||||||
Relationships |
| |||||||||||
Attached Files | ||||||||||||
Issue History | ||||||||||||
Date Modified | Username | Field | Change | |||||||||
2017-02-16 18:39 | inigoqz | New Issue | ||||||||||
2017-02-16 18:39 | inigoqz | Assigned To | => Retail | |||||||||
2017-02-16 18:39 | inigoqz | Triggers an Emergency Pack | => No | |||||||||
2017-03-29 14:04 | mtaal | Assigned To | Retail => mtaal | |||||||||
2017-04-10 06:01 | mtaal | Review Assigned To | => marvintm | |||||||||
2017-04-10 06:01 | mtaal | OBNetwork customer | => No | |||||||||
2017-04-10 06:08 | hgbot | Checkin | ||||||||||
2017-04-10 06:08 | hgbot | Note Added: 0095923 | ||||||||||
2017-04-10 06:08 | hgbot | Status | new => resolved | |||||||||
2017-04-10 06:08 | hgbot | Resolution | open => fixed | |||||||||
2017-04-10 06:08 | hgbot | Fixed in SCM revision | => http://code.openbravo.com/erp/pmods/org.openbravo.mobile.core/rev/0769bc9065a6f0825bc776b8a94915f59775b34c [^] | |||||||||
2017-04-10 06:11 | mtaal | Note Added: 0095924 | ||||||||||
2017-05-09 08:42 | marvintm | Status | resolved => closed | |||||||||
2017-05-09 08:42 | marvintm | Fixed in Version | => RR17Q3 | |||||||||
2017-06-19 11:09 | mtaal | Relationship added | related to 0036196 |
Notes | |||||
|
|||||
|
|
||||
|
|||||
|
|