Allow entities to stop by terminating without remember entities (#29384)

* Allow entities to stop by terminating in sharding without remember entities #29383
  We missed an allowed transition from running/active to stopped/NoState in shard. 
  when the logic was rewritten.
* Add a toggle to opt-in crash shard on illegal state transitions
  Default is logging an error and not crashing shard and all other entities, our tests have the toggle enabled.
* A fix for passivation when not using remember entities fixing #29359 and possibly #27549
This commit is contained in:
Johan Andrén 2020-07-15 08:38:23 +02:00 committed by GitHub
parent 9739e6f44d
commit 01edcab657
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
20 changed files with 144 additions and 56 deletions

View file

@ -47,6 +47,7 @@ object PersistentStartEntitySpec {
akka.remote.classic.netty.tcp.port = 0
akka.persistence.journal.plugin = "akka.persistence.journal.inmem"
akka.cluster.sharding.verbose-debug-logging = on
akka.cluster.sharding.fail-on-invalid-entity-state-transition = on
""".stripMargin)
}