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

View Issue DetailsJump to Notes ] Issue History ] Print ]
ID
0043366
TypeCategorySeverityReproducibilityDate SubmittedLast Update
defect[Retail Modules] Web POSmajorrandom2020-02-28 10:512020-03-06 14:46
ReportermarvintmView Statuspublic 
Assigned Toranjith_qualiantech_com 
PriorityurgentResolutionfixedFixed in VersionRR20Q2
StatusclosedFix in branchFixed in SCM revisiondaf8a74e6ffd
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

0043366: Cache manifest doesn't guarantee file order consistency, which can lead to unnecessary sources reloading

DescriptionCurrently the manifest we generate is not guaranteeing the order of the files inside it. In particular, in high availability environments, it could happen that different nodes return different manifests, with the same file list, but in different order.

When this happens, the WebPOS reloads the sources even though the individual files didn't really change.

This doesn't generate any painful functional problem and offline mode continues to work as usual. However, this means that the user needs to wait a little bit more time to use the application, the server is doing more work than it would need to do if this worked correctly, and if bandwidth either in the store or the server is limited, this may lead to performance problems.
Steps To Reproduce-In a high availability environment, load the WebPOS and do login.
- With developer tools open, refresh the page. Notice in the Network tab in dev tools that the sources are retrieved from the cache/service workers.
- Do logout. Check the network again, and notice that the sources are now being loaded from the server instead.

It is not always reproducible, but in our tests it was happening almost always, as the load balancer relies on the cookie to maintain communication with the same node, and whenever the cookie is lost, in many cases it redirects to a different node.
TagsNo tags attached.
Attached Files

- Relationships Relation Graph ] Dependency Graph ]
related to defect 0043363 closedalostale Openbravo ERP unneded requests to StaticResources when working in cluster 
related to design defect 0034490 acknowledgedTriage Platform Base Openbravo ERP [clustering] Support clustering 

-  Notes
(0118216)
hgbot (developer)
2020-03-02 03:53

Repository: erp/pmods/org.openbravo.mobile.core
Changeset: 3f5a3133dca466c253aed5c1f028accacd72c44c
Author: Ranjith S R <ranjith <at> qualiantech.com>
Date: Mon Mar 02 08:22:52 2020 +0530
URL: http://code.openbravo.com/erp/pmods/org.openbravo.mobile.core/rev/3f5a3133dca466c253aed5c1f028accacd72c44c [^]

Fixed ISSUE-43366 : File List should be sorted for Application Cache manifest

---
M src/org/openbravo/mobile/core/MobileCoreApplicationCacheComponent.java
---
(0118283)
hgbot (developer)
2020-03-03 10:02

Repository: erp/pmods/org.openbravo.mobile.core
Changeset: 02ca26347381dd408cfe2b426ddc903843a87a7f
Author: Antonio Moreno <antonio.moreno <at> openbravo.com>
Date: Tue Mar 03 10:02:23 2020 +0100
URL: http://code.openbravo.com/erp/pmods/org.openbravo.mobile.core/rev/02ca26347381dd408cfe2b426ddc903843a87a7f [^]

Related to ISSUE-43366. We also sort app resources.

---
M src/org/openbravo/mobile/core/MobileCoreApplicationCacheComponent.java
---
(0118284)
hgbot (developer)
2020-03-03 10:02

Repository: erp/pmods/org.openbravo.retail.posterminal
Changeset: 037f1c2b2cc0ab3757219030489151a87adbd2f6
Author: Antonio Moreno <antonio.moreno <at> openbravo.com>
Date: Tue Mar 03 10:02:43 2020 +0100
URL: http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/037f1c2b2cc0ab3757219030489151a87adbd2f6 [^]

Related to ISSUE-43366. We also sort app resources.

---
M src/org/openbravo/retail/posterminal/ApplicationCacheComponent.java
---
(0118331)
marvintm (manager)
2020-03-05 08:54

It seems static resources section is not yet fully sorted
(0118346)
hgbot (developer)
2020-03-05 15:06

Repository: erp/pmods/org.openbravo.mobile.core
Changeset: 231dd6f1a08d9c4536f2424cdef1ff0311d4c846
Author: Ranjith S R <ranjith <at> qualiantech.com>
Date: Thu Mar 05 19:35:58 2020 +0530
URL: http://code.openbravo.com/erp/pmods/org.openbravo.mobile.core/rev/231dd6f1a08d9c4536f2424cdef1ff0311d4c846 [^]

Fixed ISSUE-43366 : Asset File List should be sorted for Application Cache manifest

---
M src/org/openbravo/mobile/core/MobileCoreApplicationCacheComponent.java
---
(0118379)
hgbot (developer)
2020-03-06 13:40

Repository: erp/pmods/org.openbravo.mobile.core
Changeset: daf8a74e6ffd4d1e22640a9e4f69402c4c04b9fc
Author: Ranjith S R <ranjith <at> qualiantech.com>
Date: Fri Mar 06 18:09:47 2020 +0530
URL: http://code.openbravo.com/erp/pmods/org.openbravo.mobile.core/rev/daf8a74e6ffd4d1e22640a9e4f69402c4c04b9fc [^]

Fixed ISSUE-43366 : ModuleName should be sorted for Application Cache manifest

---
M src/org/openbravo/mobile/core/MobileCoreApplicationCacheComponent.java
---

- Issue History
Date Modified Username Field Change
2020-02-28 10:51 marvintm New Issue
2020-02-28 10:51 marvintm Assigned To => Retail
2020-02-28 10:51 marvintm Triggers an Emergency Pack => No
2020-02-28 10:52 marvintm Resolution time => 1583449200
2020-02-28 10:53 marvintm Relationship added related to 0043363
2020-02-28 11:13 alostale Relationship added related to 0034490
2020-02-28 12:17 ranjith_qualiantech_com Assigned To Retail => ranjith_qualiantech_com
2020-03-01 06:20 ranjith_qualiantech_com Status new => scheduled
2020-03-02 03:53 hgbot Checkin
2020-03-02 03:53 hgbot Note Added: 0118216
2020-03-02 03:53 hgbot Status scheduled => resolved
2020-03-02 03:53 hgbot Resolution open => fixed
2020-03-02 03:53 hgbot Fixed in SCM revision => http://code.openbravo.com/erp/pmods/org.openbravo.mobile.core/rev/3f5a3133dca466c253aed5c1f028accacd72c44c [^]
2020-03-03 10:02 hgbot Checkin
2020-03-03 10:02 hgbot Note Added: 0118283
2020-03-03 10:02 hgbot Checkin
2020-03-03 10:02 hgbot Note Added: 0118284
2020-03-03 10:03 marvintm Review Assigned To => marvintm
2020-03-03 10:03 marvintm Status resolved => closed
2020-03-03 10:03 marvintm Fixed in Version => RR20Q2
2020-03-05 08:54 marvintm Note Added: 0118331
2020-03-05 08:54 marvintm Status closed => new
2020-03-05 08:54 marvintm Resolution fixed => open
2020-03-05 08:54 marvintm Fixed in Version RR20Q2 =>
2020-03-05 14:01 ranjith_qualiantech_com Status new => scheduled
2020-03-05 15:06 hgbot Checkin
2020-03-05 15:06 hgbot Note Added: 0118346
2020-03-05 15:06 hgbot Status scheduled => resolved
2020-03-05 15:06 hgbot Resolution open => fixed
2020-03-05 15:06 hgbot Fixed in SCM revision http://code.openbravo.com/erp/pmods/org.openbravo.mobile.core/rev/3f5a3133dca466c253aed5c1f028accacd72c44c [^] => http://code.openbravo.com/erp/pmods/org.openbravo.mobile.core/rev/231dd6f1a08d9c4536f2424cdef1ff0311d4c846 [^]
2020-03-05 18:04 marvintm Status resolved => closed
2020-03-05 18:04 marvintm Fixed in Version => RR20Q2
2020-03-06 13:40 hgbot Checkin
2020-03-06 13:40 hgbot Note Added: 0118379
2020-03-06 13:40 hgbot Status closed => resolved
2020-03-06 13:40 hgbot Fixed in SCM revision http://code.openbravo.com/erp/pmods/org.openbravo.mobile.core/rev/231dd6f1a08d9c4536f2424cdef1ff0311d4c846 [^] => http://code.openbravo.com/erp/pmods/org.openbravo.mobile.core/rev/daf8a74e6ffd4d1e22640a9e4f69402c4c04b9fc [^]
2020-03-06 14:46 marvintm Status resolved => closed


Copyright © 2000 - 2009 MantisBT Group
Powered by Mantis Bugtracker