Skip to content
This repository has been archived by the owner on Apr 18, 2024. It is now read-only.

sample.distributeddata.ShoppingCartSpec: must handle updates from different nodes #31

Open
raboof opened this issue Jun 30, 2017 · 2 comments
Labels

Comments

@raboof
Copy link
Member

raboof commented Jun 30, 2017

[JVM-3] - must handle updates from different nodes *** FAILED ***
[JVM-3]   Set(LineItem [productId=1, title=Apples, quantity=7]) was not equal to Set(LineItem [productId=1, title=Apples, quantity=7], LineItem [productId=3, title=Bananas, quantity=4]) (ShoppingCartSpec.scala:91)
[JVM-2] - must handle updates from different nodes *** FAILED ***
[JVM-2]   Set(LineItem [productId=1, title=Apples, quantity=7]) was not equal to Set(LineItem [productId=1, title=Apples, quantity=7], LineItem [productId=3, title=Bananas, quantity=4]) (ShoppingCartSpec.scala:91)
@gosubpl
Copy link

gosubpl commented Nov 9, 2017

Interesting case. Might be the result of akka/akka#22890 (fixed) as both setup and symptoms are very similar.

@gosubpl
Copy link

gosubpl commented Nov 14, 2017

It might also be a result of LWWMap anomaly - see here: https://github.com/akka/akka/blob/master/akka-distributed-data/src/test/scala/akka/cluster/ddata/LWWMapSpec.scala#L66-L68
I have added a PR for alternative Shopping Cart design based on ORMultiMap.emptyWithValueDeltas that should be free from this sort of anomalies.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants