Coder Social home page Coder Social logo

vlingo / xoom-lattice Goto Github PK

View Code? Open in Web Editor NEW
55.0 14.0 17.0 1.36 MB

The VLINGO XOOM platform SDK Reactive Domain-Driven Design models that are highly scalable and concurrent. Includes compute grid, actor caching, spaces, cross-node grid cluster messaging, message exchanges, CQRS, and Event Sourcing support.

Home Page: https://vlingo.io

License: Mozilla Public License 2.0

Java 100.00%
actor-model actors ddd cqrs event-sourcing reactive reactive-programming jvm jvm-languages vlingo

xoom-lattice's People

Contributors

aleixmorgadas avatar alexguzun avatar buritos avatar danilo-ambrosio avatar davemuirhead avatar dependabot[bot] avatar hamzajg avatar jakzal avatar kmruiz avatar olegdokuka avatar pflueras avatar sturmm avatar vaughnvernon avatar vlingo-java avatar wwerner avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

xoom-lattice's Issues

Array and List backed HashRing implementations throw on removeNode

MD5*Ring and MurmurArrayHashRing excludeNode always fail with ArrayIndexOutOfBoundsException. nodeOf also fails with the same exception when the ring is empty. From what I see it the exact same algorithm copied over to all of these.

There are ignored tests which currently fail for these here: #12

EventJournal adapters sometimes are not registered

In my example code, I have a single entity (shopping Cart) that has 3 events. On every 5th run or so the service spits out this error message. In the code, the regististration of the "CreatedEvent" adapter is made very clearly. There appears to be some kind of race condition that can cause the registration to not be considered and the "recovery error" to be logged. In my example this does not provable affect the actor, but it certainly should be investigated.

You can see this in my fork of the examples, using the branch feature/event-sourced-example
bwehrle/vlingo-examples@dbb629c
Please run this in a loop until you see the issue:

 mvn test -pl vlingo-ecommerce

To wait for this to happen you can run:

while true ; do mvn test -pl vlingo-ecommerce | grep Exception ; sleep 0.5 ; done & 

vlingo/actors: Message#deliver(): Exception: Stream not recovered for: CartEntity(cartEvents) because: Adapter not registrered for: io.vlingo.examples.ecommerce.model.CartEvents$CreatedEvent for Actor: Actor[type=CartEntity address=Address[id=135, name=cart-135]] sending: start()
vlingo/actors: io.vlingo.symbio.store.StorageException: Stream not recovered for: CartEntity(cartEvents) because: Adapter not registrered for: io.vlingo.examples.ecommerce.model.CartEvents$CreatedEvent
at io.vlingo.lattice.model.sourcing.Sourced.lambda$restore$7(Sourced.java:271)
at io.vlingo.common.BasicCompletes$BasicActiveState.handleException(BasicCompletes.java:501)
at io.vlingo.common.BasicCompletes$BasicActiveState.exceptionAction(BasicCompletes.java:490)
at io.vlingo.common.BasicCompletes.recoverFrom(BasicCompletes.java:148)

Eliminate Bare TestUntil Uses

Moved vlingo-lattice to vlingo-lattice-core. See vlingo-lattice-core for the following.

The following tests must be converted to use AccessSafely rather than bare TestUntil:

  • ExchangeTest
  • TestExchangeReceiver1 (mock)
  • TestExchangeReceiver2 (mock)
  • DescribedProjection
  • MockResultInterest (mock)
  • StateProjectionDispatcherTest
  • MockProjection
  • CommandSourcedTest
  • EventSourcedTest
  • Result
  • MockTextDispatcher
  • StatefulEntityTest

Apparent ClassLoader Issue: Grid+cluster

Context:

https://github.com/vlingo/vlingo-examples/tree/master/vlingo-distributed-ping-pong

The problem is that when we run the Grid (on top of vlingo-cluster) there are various classes that cannot be found. These are fundamental, such as:

io.vlingo.actors.Actor

and sometimes:

io.vlingo.common.Completes

and other ones that are absolutely available.

This seems to be mostly because we use the JDK's Java compiler to dynamically compile generated protocol proxy classes. We have attempted various ClassLoader-based fixes but without results.

Given set of jar dependencies, the above demo/example is broken on all Java versions 8, 11, 13 on OSX; even with a fat jar it's still broken. Actually the jar Maven build:

maven-jar-plugin
maven-dependency-plugin

and fat jar:

maven-assembly-plugin

both seems to move the problem to other dependencies not being found at start up.

NOTE: To see the failure via vlingo-distributed-ping-pong you must remove all *__Proxy.java from package io.vlingo.pingpong.domain. Otherwise it always works. Caching the proxies in src/main is our current workaround.

At runtime, when dynamically generating proxies and then compiling them, the compiler can't find the standard platform classes imported by the proxies. The problem is exhibited only on certain platforms.

πŸ‘βœ… Windows, with JDK 8, 11, and 13
πŸ‘βœ…Inside IntelliJ and Eclipse
πŸ‘Žβ›”οΈ OSX, with JDK 8, 11, and 13
❓◻️ Linux, currently untested

It's possible that the ClassLoader related fix could be taking ideas from the OSS Eclipse project.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.