Anonymous | Login
Project:
RSS
  
News | My View | View Issues | Roadmap | Summary

View Issue DetailsJump to Notes ] Issue History ] Print ]
ID
0037727
TypeCategorySeverityReproducibilityDate SubmittedLast Update
defect[Retail Modules] Web POSmajoralways2018-01-25 13:402018-02-05 12:09
ReportermarvintmView Statuspublic 
Assigned Toranjith_qualiantech_com 
PrioritynormalResolutionfixedFixed in VersionRR18Q2
StatusclosedFix in branchFixed in SCM revision7a9f2722b175
ProjectionnoneETAnoneTarget Version
OSAnyDatabaseAnyJava version
OS VersionDatabase versionAnt version
Product VersionSCM revision 
Review Assigned Tomarvintm
Regression level
Regression date
Regression introduced in release
Regression introduced by commit
Triggers an Emergency PackNo
Summary

0037727: In some very specific cases the optimistic locking mechanism may fail to find a concurrent modification

DescriptionThe optimistic locking mechanism which exists in the OrderLoader is using a flag which contains the timestap of the order. However, this timestamp is generated in PaidReceipts.java, and is generated from the current timestamp of the system, instead of reading the updated column of the order.

This works in most of the cases, but theoretically it could happen that a concurrent transaction may change the updated value while the PaidReceipts.java request is being executed, and in this case, the check in the OrderLoader would not detect the change.
Steps To ReproduceIt is very difficult to reproduce this problem using the system normally. The best way to reproduce it is by using Eclipse and setting timeouts in PaidReceipts.java (after the timestamp has been generated), and then changing the receipt.
Proposed SolutionInstead of generating a timestamp when reading the order, just use the "updated" column of the order itself.
TagsNo tags attached.
Attached Filespatch file icon issue37727.patch [^] (1,933 bytes) 2018-01-25 14:07 [Show Content]

- Relationships Relation Graph ] Dependency Graph ]

-  Notes
(0102168)
hgbot (developer)
2018-02-05 09:33

Repository: erp/pmods/org.openbravo.retail.posterminal
Changeset: 7a9f2722b17516562a69692b6913fa0b04d520bb
Author: Ranjith S R <ranjith <at> qualiantech.com>
Date: Mon Feb 05 14:03:28 2018 +0530
URL: http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/7a9f2722b17516562a69692b6913fa0b04d520bb [^]

Fixed issue 37727 : Verify Outdated data with order updated instead of timestamp

---
M src/org/openbravo/retail/posterminal/OrderLoader.java
M src/org/openbravo/retail/posterminal/PaidReceiptProperties.java
M src/org/openbravo/retail/posterminal/PaidReceipts.java
---
(0102169)
hgbot (developer)
2018-02-05 09:34

Repository: tools/automation/pi-mobile
Changeset: 77363b563aee01450253db52d856acae105db4db
Author: Ranjith S R <ranjith <at> qualiantech.com>
Date: Mon Feb 05 14:03:36 2018 +0530
URL: http://code.openbravo.com/tools/automation/pi-mobile/rev/77363b563aee01450253db52d856acae105db4db [^]

Verifies issue 37727 : Modified automated test 'BaseRetailOrderLoaderTest'

---
M src-test/org/openbravo/test/mobile/retail/pack/webservice/tests/orderloader/BaseRetailOrderLoaderTest.java
---

- Issue History
Date Modified Username Field Change
2018-01-25 13:40 marvintm New Issue
2018-01-25 13:40 marvintm Assigned To => Retail
2018-01-25 13:40 marvintm Triggers an Emergency Pack => No
2018-01-25 13:43 marvintm File Added: issue37727.patch
2018-01-25 13:44 marvintm Resolution time => 1518044400
2018-01-25 14:07 marvintm File Deleted: issue37727.patch
2018-01-25 14:07 marvintm File Added: issue37727.patch
2018-01-30 15:42 ranjith_qualiantech_com Assigned To Retail => ranjith_qualiantech_com
2018-01-30 15:42 ranjith_qualiantech_com Status new => scheduled
2018-02-05 09:33 hgbot Checkin
2018-02-05 09:33 hgbot Note Added: 0102168
2018-02-05 09:33 hgbot Status scheduled => resolved
2018-02-05 09:33 hgbot Resolution open => fixed
2018-02-05 09:33 hgbot Fixed in SCM revision => http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/7a9f2722b17516562a69692b6913fa0b04d520bb [^]
2018-02-05 09:34 hgbot Checkin
2018-02-05 09:34 hgbot Note Added: 0102169
2018-02-05 12:09 marvintm Review Assigned To => marvintm
2018-02-05 12:09 marvintm Status resolved => closed
2018-02-05 12:09 marvintm Fixed in Version => RR18Q2


Copyright © 2000 - 2009 MantisBT Group
Powered by Mantis Bugtracker