ERROR akka.actor.OneForOneStrategy akka://NCSSystem/user/data/connectionCoordinator/singleton/coordinator :
requirement failed: Region Actor[akka.tcp://NCSSystem@server2/user/data/connection#789496176] not registered: State(Map(),Map(),Set())
java.lang.IllegalArgumentException: requirement failed: Region Actor[akka.tcp://NCSSystem@server2/user/data/connection#789496176] not registered: State(Map(),Map(),Set())
at scala.Predef$.require(Predef.scala:233) ~[scala-library-2.10.4.jar:na]
at akka.contrib.pattern.ShardCoordinator$Internal$State.updated(ClusterSharding.scala:1115) ~[akka-contrib_2.10-2.3.4.jar:2.3.4]
at akka.contrib.pattern.ShardCoordinator$$anonfun$receiveRecover$1.applyOrElse(ClusterSharding.scala:1236) ~[akka-contrib_2.10-2.3.4.jar:2.3.4]
at scala.runtime.AbstractPartialFunction$mcVL$sp.apply$mcVL$sp(AbstractPartialFunction.scala:33) ~[scala-library-2.10.4.jar:na]
at scala.runtime.AbstractPartialFunction$mcVL$sp.apply(AbstractPartialFunction.scala:33) ~[scala-library-2.10.4.jar:na]
at scala.runtime.AbstractPartialFunction$mcVL$sp.apply(AbstractPartialFunction.scala:25) ~[scala-library-2.10.4.jar:na]
at akka.persistence.Eventsourced$$anonfun$akka$persistence$Eventsourced$$recoveryBehavior$1.applyOrElse(Eventsourced.scala:168) ~[akka-persistence-experimental_2.10-2.3.4.jar:na]
at akka.persistence.Recovery$State$$anonfun$processPersistent$1.apply(Recovery.scala:33) ~[akka-persistence-experimental_2.10-2.3.4.jar:na]
at akka.persistence.Recovery$State$$anonfun$processPersistent$1.apply(Recovery.scala:33) ~[akka-persistence-experimental_2.10-2.3.4.jar:na]
at akka.persistence.Recovery$class.withCurrentPersistent(Recovery.scala:176) ~[akka-persistence-experimental_2.10-2.3.4.jar:na]
at akka.contrib.pattern.ShardCoordinator.withCurrentPersistent(ClusterSharding.scala:1192) ~[akka-contrib_2.10-2.3.4.jar:2.3.4]
at akka.persistence.Recovery$State$class.processPersistent(Recovery.scala:33) ~[akka-persistence-experimental_2.10-2.3.4.jar:na]
at akka.persistence.Recovery$$anon$1.processPersistent(Recovery.scala:95) ~[akka-persistence-experimental_2.10-2.3.4.jar:na]
at akka.persistence.Recovery$$anon$1.aroundReceive(Recovery.scala:101) ~[akka-persistence-experimental_2.10-2.3.4.jar:na]
at akka.persistence.Recovery$class.aroundReceive(Recovery.scala:256) ~[akka-persistence-experimental_2.10-2.3.4.jar:na]
at akka.contrib.pattern.ShardCoordinator.akka$persistence$Eventsourced$$super$aroundReceive(ClusterSharding.scala:1192) ~[akka-contrib_2.10-2.3.4.jar:2.3.4]
at akka.persistence.Eventsourced$$anon$1.aroundReceive(Eventsourced.scala:35) ~[akka-persistence-experimental_2.10-2.3.4.jar:na]
at akka.persistence.Eventsourced$class.aroundReceive(Eventsourced.scala:369) ~[akka-persistence-experimental_2.10-2.3.4.jar:na]
at akka.contrib.pattern.ShardCoordinator.aroundReceive(ClusterSharding.scala:1192) ~[akka-contrib_2.10-2.3.4.jar:2.3.4]
at akka.actor.ActorCell.receiveMessage(ActorCell.scala:516) [akka-actor_2.10-2.3.4.jar:na]
at akka.actor.ActorCell.invoke(ActorCell.scala:487) [akka-actor_2.10-2.3.4.jar:na]
at akka.dispatch.Mailbox.processMailbox(Mailbox.scala:238) [akka-actor_2.10-2.3.4.jar:na]
at akka.dispatch.Mailbox.run(Mailbox.scala:220) [akka-actor_2.10-2.3.4.jar:na]
at akka.dispatch.ForkJoinExecutorConfigurator$AkkaForkJoinTask.exec(AbstractDispatcher.scala:393) [akka-actor_2.10-2.3.4.jar:na]
at scala.concurrent.forkjoin.ForkJoinTask.doExec(ForkJoinTask.java:260) [scala-library-2.10.4.jar:na]
at scala.concurrent.forkjoin.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:1339) [scala-library-2.10.4.jar:na]
at scala.concurrent.forkjoin.ForkJoinPool.runWorker(ForkJoinPool.java:1979) [scala-library-2.10.4.jar:na]
at scala.concurrent.forkjoin.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:107) [scala-library-2.10.4.jar:na]
Best regards,I just saw that https://github.com/dnvriend/akka-persistence-jdbc was worked on during the summer, so I'll try to use that one instead of our own, and see if the problem goes away.I'll try to reproduce it later and check the db again.It might be a problem related to snapshoting in combination with a bug in our jdbc journal.But I was unable to reproduce the problem now.I checked the journal and ShardRegionProxyRegistered is written to it.Thanks the response,We are using a homebrew jdbc journal.
Morten Kjetland
--
>>>>>>>>>> Read the docs: http://akka.io/docs/
>>>>>>>>>> Check the FAQ: http://doc.akka.io/docs/akka/current/additional/faq.html
>>>>>>>>>> Search the archives: https://groups.google.com/group/akka-user
---
You received this message because you are subscribed to the Google Groups "Akka User List" group.
To unsubscribe from this group and stop receiving emails from it, send an email to akka-user+...@googlegroups.com.
To post to this group, send email to akka...@googlegroups.com.
Visit this group at http://groups.google.com/group/akka-user.
For more options, visit https://groups.google.com/d/optout.
Patrik Nordwall
Typesafe - Reactive apps on the JVM
Twitter: @patriknw
Hi Richard,That is not good. We have seen similar issue a few times and tracked it down to bugs in the journal implementations. It will happen when events are replayed in the wrong order.Is there a way we can reproduce this?Regards,Patrik
On Mon, Nov 10, 2014 at 2:42 PM, Richard Bowker <mechajoh...@googlemail.com> wrote:
I have had seen a similar problem when restarting nodes in a cluster using sharding.after restarting, the node with the shard coordinator went into an infinite error loop.I was using akka 2.3.6 and "com.github.krasserm" %% "akka-persistence-cassandra" % "0.3.4" as the journal/persistence store.section of the error log below, I didn not know what to do to recover this other than just manually delete all the akka keystores from the database which obviously isn't ideal!any thoughts?thanks
[ERROR] [11/10/2014 13:16:21.969] [ClusterSystem-akka.actor.default-dispatcher-17] [akka://ClusterSystem/user/sharding/PollServiceCoordinator/singleton/coordinator]
requirement failed: Region Actor[akka.tcp://ClusterSystem@172.31.18.169:2552/user/sharding/PollService#546005322] not registered: State(Map(test47 -> Actor
[akka://ClusterSystem/user/sharding/PollService#1625036981], test6 -> Actor[akka://ClusterSystem/user/sharding/PollService#1625036981], test30 -> Actor
[akka://ClusterSystem/user/sharding/PollService#1625036981], test42 -> Actor[akka.tcp://ClusterSystem@172.31.21.9:2552/user/sharding/PollService#1716980828], test29 ->Actor[akka.tcp://ClusterSystem@172.31.21.9:2552/user/sharding/PollService#1716980828], test18 -> Actor[akka://ClusterSystem/user/sharding/PollService#1625036981],test14 -> Actor[akka.tcp://ClusterSystem@172.31.21.9:2552/user/sharding/PollService#1716980828], test36 -> Actor[akka.tcp://ClusterSystem@172.31.21.9:2552/user/sharding/PollService#1716980828], test25 -> Actor[akka://ClusterSystem/user/sharding/PollService#1625036981], test28 ->Actor[akka://ClusterSystem/user/sharding/PollService#1625036981], test43 -> Actor[akka.tcp://ClusterSystem@172.31.21.9:2552/user/sharding/PollService#1716980828],test32 -> Actor[akka.tcp://ClusterSystem@172.31.21.9:2552/user/sharding/PollService#1716980828], test20 -> Actor[akka://ClusterSystem/user/sharding/PollService#1625036981], test15 -> Actor[akka.tcp://ClusterSystem@172.31.21.9:2552/user/sharding/PollService#1716980828], test33 ->Actor[akka://ClusterSystem/user/sharding/PollService#1625036981], test22 -> Actor[akka.tcp://ClusterSystem@172.31.21.9:2552/user/sharding/PollService#1716980828], test0-> Actor[akka.tcp://ClusterSystem@172.31.21.9:2552/user/sharding/PollService#1716980828], test44 -> Actor[akka://ClusterSystem/user/sharding/PollService#1625036981],
test11 -> Actor[akka://ClusterSystem/user/sharding/PollService#1625036981], test41 -> Actor
[akka.tcp://ClusterSystem@172.31.21.9:2552/user/sharding/PollService#1716980828], test37 -> Actor[akka.tcp://ClusterSystem@172.31.21.9:2552/user/sharding/PollService#1716980828], test16 -> Actor[akka://ClusterSystem/user/sharding/PollService#1625036981], test9 ->Actor[akka.tcp://ClusterSystem@172.31.21.9:2552/user/sharding/PollService#1716980828], test23 -> Actor[akka.tcp://ClusterSystem@172.31.21.9:2552/user/sharding/PollService#1716980828], test34 -> Actor[akka://ClusterSystem/user/sharding/PollService#1625036981], test45 ->Actor[akka.tcp://ClusterSystem@172.31.21.9:2552/user/sharding/PollService#1716980828], test38 -> Actor[akka://ClusterSystem/user/sharding/PollService#1625036981], test8
-> Actor[akka://ClusterSystem/user/sharding/PollService#1625036981], test19 -> Actor[akka://ClusterSystem/user/sharding/PollService#1625036981], test35 -> Actor
[akka.tcp://ClusterSystem@172.31.21.9:2552/user/sharding/PollService#1716980828], test5 -> Actor[akka://ClusterSystem/user/sharding/PollService#1625036981], test24 ->Actor[akka://ClusterSystem/user/sharding/PollService#1625036981], test2 -> Actor[akka.tcp://ClusterSystem@172.31.21.9:2552/user/sharding/PollService#1716980828]),Map
(Actor[akka://ClusterSystem/user/sharding/PollService#1625036981] -> Vector(test6, test18, test28, test20, test33, test44, test16, test34, test8, test24, test5, test11,
test19, test25, test30, test38, test47), Actor[akka.tcp://ClusterSystem@172.31.21.9:2552/user/sharding/PollService#1716980828] -> Vector(test42, test36, test32, test15,
test0, test41, test23, test45, test35, test2, test9, test14, test22, test29, test37, test43)),Set(Actor
java.lang.IllegalArgumentException: requirement failed: Region Actor[akka.tcp://ClusterSystem@172.31.18.169:2552/user/sharding/PollService#546005322] not registered:
State(Map(test47 -> Actor[akka://ClusterSystem/user/sharding/PollService#1625036981], test6 -> Actor[akka://ClusterSystem/user/sharding/PollService#1625036981], test30
-> Actor[akka://ClusterSystem/user/sharding/PollService#1625036981], test42 -> Actor[akka.tcp://ClusterSystem@172.31.21.9:2552/user/sharding/PollService#1716980828],test29 -> Actor[akka.tcp://ClusterSystem@172.31.21.9:2552/user/sharding/PollService#1716980828], test18 -> Actor[akka://ClusterSystem/user/sharding/PollService#1625036981], test14 -> Actor[akka.tcp://ClusterSystem@172.31.21.9:2552/user/sharding/PollService#1716980828], test36 ->Actor[akka.tcp://ClusterSystem@172.31.21.9:2552/user/sharding/PollService#1716980828], test25 -> Actor[akka://ClusterSystem/user/sharding/PollService#1625036981],
test28 -> Actor[akka://ClusterSystem/user/sharding/PollService#1625036981], test43 -> Actor
[akka.tcp://ClusterSystem@172.31.21.9:2552/user/sharding/PollService#1716980828], test32 -> Actor[akka.tcp://ClusterSystem@172.31.21.9:2552/user/sharding/PollService#1716980828], test20 -> Actor[akka://ClusterSystem/user/sharding/PollService#1625036981], test15 ->Actor[akka.tcp://ClusterSystem@172.31.21.9:2552/user/sharding/PollService#1716980828], test33 -> Actor[akka://ClusterSystem/user/sharding/PollService#1625036981],test22 -> Actor[akka.tcp://ClusterSystem@172.31.21.9:2552/user/sharding/PollService#1716980828], test0 -> Actor[akka.tcp://ClusterSystem@172.31.21.9:2552/user/sharding/PollService#1716980828], test44 -> Actor[akka://ClusterSystem/user/sharding/PollService#1625036981], test11 ->Actor[akka://ClusterSystem/user/sharding/PollService#1625036981], test41 -> Actor[akka.tcp://ClusterSystem@172.31.21.9:2552/user/sharding/PollService#1716980828],test37 -> Actor[akka.tcp://ClusterSystem@172.31.21.9:2552/user/sharding/PollService#1716980828], test16 -> Actor[akka://ClusterSystem/user/sharding/PollService#1625036981], test9 -> Actor[akka.tcp://ClusterSystem@172.31.21.9:2552/user/sharding/PollService#1716980828], test23 ->Actor[akka.tcp://ClusterSystem@172.31.21.9:2552/user/sharding/PollService#1716980828], test34 -> Actor[akka://ClusterSystem/user/sharding/PollService#1625036981],test45 -> Actor[akka.tcp://ClusterSystem@172.31.21.9:2552/user/sharding/PollService#1716980828], test38 -> Actor
[akka://ClusterSystem/user/sharding/PollService#1625036981], test8 -> Actor[akka://ClusterSystem/user/sharding/PollService#1625036981], test19 -> Actor
[akka://ClusterSystem/user/sharding/PollService#1625036981], test35 -> Actor[akka.tcp://ClusterSystem@172.31.21.9:2552/user/sharding/PollService#1716980828], test5 ->
Actor[akka://ClusterSystem/user/sharding/PollService#1625036981], test24 -> Actor[akka://ClusterSystem/user/sharding/PollService#1625036981], test2 -> Actor
[akka.tcp://ClusterSystem@172.31.21.9:2552/user/sharding/PollService#1716980828]),Map(Actor[akka://ClusterSystem/user/sharding/PollService#1625036981] -> Vector(test6,
test18, test28, test20, test33, test44, test16, test34, test8, test24, test5, test11, test19, test25, test30, test38, test47), Actor
[akka.tcp://ClusterSystem@172.31.21.9:2552/user/sharding/PollService#1716980828] -> Vector(test42, test36, test32, test15, test0, test41, test23, test45, test35, test2,
requirement failed: Region Actor[akka.tcp://ClusterSystem@172.31.18.169:2552/user/sharding/PollService#546005322] not registered: State(Map(test47 -> Actor
[akka://ClusterSystem/user/sharding/PollService#1625036981], test6 -> Actor[akka://ClusterSystem/user/sharding/PollService#1625036981], test30 -> Actor
[akka://ClusterSystem/user/sharding/PollService#1625036981], test42 -> Actor[akka.tcp://ClusterSystem@172.31.21.9:2552/user/sharding/PollService#1716980828], test29 ->Actor[akka.tcp://ClusterSystem@172.31.21.9:2552/user/sharding/PollService#1716980828], test18 -> Actor[akka://ClusterSystem/user/sharding/PollService#1625036981],test14 -> Actor[akka.tcp://ClusterSystem@172.31.21.9:2552/user/sharding/PollService#1716980828], test36 -> Actor[akka.tcp://ClusterSystem@172.31.21.9:2552/user/sharding/PollService#1716980828], test25 -> Actor[akka://ClusterSystem/user/sharding/PollService#1625036981], test28 ->Actor[akka://ClusterSystem/user/sharding/PollService#1625036981], test43 -> Actor[akka.tcp://ClusterSystem@172.31.21.9:2552/user/sharding/PollService#1716980828],test32 -> Actor[akka.tcp://ClusterSystem@172.31.21.9:2552/user/sharding/PollService#1716980828], test20 -> Actor[akka://ClusterSystem/user/sharding/PollService#1625036981], test15 -> Actor[akka.tcp://ClusterSystem@172.31.21.9:2552/user/sharding/PollService#1716980828], test33 ->Actor[akka://ClusterSystem/user/sharding/PollService#1625036981], test22 -> Actor[akka.tcp://ClusterSystem@172.31.21.9:2552/user/sharding/PollService#1716980828], test0-> Actor[akka.tcp://ClusterSystem@172.31.21.9:2552/user/sharding/PollService#1716980828], test44 -> Actor[akka://ClusterSystem/user/sharding/PollService#1625036981],
test11 -> Actor[akka://ClusterSystem/user/sharding/PollService#1625036981], test41 -> Actor
[akka.tcp://ClusterSystem@172.31.21.9:2552/user/sharding/PollService#1716980828], test37 -> Actor[akka.tcp://ClusterSystem@172.31.21.9:2552/user/sharding/PollService#1716980828], test16 -> Actor[akka://ClusterSystem/user/sharding/PollService#1625036981], test9 ->Actor[akka.tcp://ClusterSystem@172.31.21.9:2552/user/sharding/PollService#1716980828], test23 -> Actor[akka.tcp://ClusterSystem@172.31.21.9:2552/user/sharding/PollService#1716980828], test34 -> Actor[akka://ClusterSystem/user/sharding/PollService#1625036981], test45 ->Actor[akka.tcp://ClusterSystem@172.31.21.9:2552/user/sharding/PollService#1716980828], test38 -> Actor[akka://ClusterSystem/user/sharding/PollService#1625036981], test8
-> Actor[akka://ClusterSystem/user/sharding/PollService#1625036981], test19 -> Actor[akka://ClusterSystem/user/sharding/PollService#1625036981], test35 -> Actor
[akka.tcp://ClusterSystem@172.31.21.9:2552/user/sharding/PollService#1716980828], test5 -> Actor[akka://ClusterSystem/user/sharding/PollService#1625036981], test24 ->Actor[akka://ClusterSystem/user/sharding/PollService#1625036981], test2 -> Actor[akka.tcp://ClusterSystem@172.31.21.9:2552/user/sharding/PollService#1716980828]),Map
(Actor[akka://ClusterSystem/user/sharding/PollService#1625036981] -> Vector(test6, test18, test28, test20, test33, test44, test16, test34, test8, test24, test5, test11,
test19, test25, test30, test38, test47), Actor[akka.tcp://ClusterSystem@172.31.21.9:2552/user/sharding/PollService#1716980828] -> Vector(test42, test36, test32, test15,
test0, test41, test23, test45, test35, test2, test9, test14, test22, test29, test37, test43)),Set(Actor
java.lang.IllegalArgumentException: requirement failed: Region Actor[akka.tcp://ClusterSystem@172.31.18.169:2552/user/sharding/PollService#546005322] not registered:
State(Map(test47 -> Actor[akka://ClusterSystem/user/sharding/PollService#1625036981], test6 -> Actor[akka://ClusterSystem/user/sharding/PollService#1625036981], test30
-> Actor[akka://ClusterSystem/user/sharding/PollService#1625036981], test42 -> Actor[akka.tcp://ClusterSystem@172.31.21.9:2552/user/sharding/PollService#1716980828],test29 -> Actor[akka.tcp://ClusterSystem@172.31.21.9:2552/user/sharding/PollService#1716980828], test18 -> Actor[akka://ClusterSystem/user/sharding/PollService#1625036981], test14 -> Actor[akka.tcp://ClusterSystem@172.31.21.9:2552/user/sharding/PollService#1716980828], test36 ->Actor[akka.tcp://ClusterSystem@172.31.21.9:2552/user/sharding/PollService#1716980828], test25 -> Actor[akka://ClusterSystem/user/sharding/PollService#1625036981],
test28 -> Actor[akka://ClusterSystem/user/sharding/PollService#1625036981], test43 -> Actor
[akka.tcp://ClusterSystem@172.31.21.9:2552/user/sharding/PollService#1716980828], test32 -> Actor[akka.tcp://ClusterSystem@172.31.21.9:2552/user/sharding/PollService#1716980828], test20 -> Actor[akka://ClusterSystem/user/sharding/PollService#1625036981], test15 ->Actor[akka.tcp://ClusterSystem@172.31.21.9:2552/user/sharding/PollService#1716980828], test33 -> Actor[akka://ClusterSystem/user/sharding/PollService#1625036981],test22 -> Actor[akka.tcp://ClusterSystem@172.31.21.9:2552/user/sharding/PollService#1716980828], test0 -> Actor[akka.tcp://ClusterSystem@172.31.21.9:2552/user/sharding/PollService#1716980828], test44 -> Actor[akka://ClusterSystem/user/sharding/PollService#1625036981], test11 ->Actor[akka://ClusterSystem/user/sharding/PollService#1625036981], test41 -> Actor[akka.tcp://ClusterSystem@172.31.21.9:2552/user/sharding/PollService#1716980828],test37 -> Actor[akka.tcp://ClusterSystem@172.31.21.9:2552/user/sharding/PollService#1716980828], test16 -> Actor[akka://ClusterSystem/user/sharding/PollService#1625036981], test9 -> Actor[akka.tcp://ClusterSystem@172.31.21.9:2552/user/sharding/PollService#1716980828], test23 ->Actor[akka.tcp://ClusterSystem@172.31.21.9:2552/user/sharding/PollService#1716980828], test34 -> Actor[akka://ClusterSystem/user/sharding/PollService#1625036981],test45 -> Actor[akka.tcp://ClusterSystem@172.31.21.9:2552/user/sharding/PollService#1716980828], test38 -> Actor
[akka://ClusterSystem/user/sharding/PollService#1625036981], test8 -> Actor[akka://ClusterSystem/user/sharding/PollService#1625036981], test19 -> Actor
[akka://ClusterSystem/user/sharding/PollService#1625036981], test35 -> Actor[akka.tcp://ClusterSystem@172.31.21.9:2552/user/sharding/PollService#1716980828], test5 ->
Actor[akka://ClusterSystem/user/sharding/PollService#1625036981], test24 -> Actor[akka://ClusterSystem/user/sharding/PollService#1625036981], test2 -> Actor
[akka.tcp://ClusterSystem@172.31.21.9:2552/user/sharding/PollService#1716980828]),Map(Actor[akka://ClusterSystem/user/sharding/PollService#1625036981] -> Vector(test6,
test18, test28, test20, test33, test44, test16, test34, test8, test24, test5, test11, test19, test25, test30, test38, test47), Actor
[akka.tcp://ClusterSystem@172.31.21.9:2552/user/sharding/PollService#1716980828] -> Vector(test42, test36, test32, test15, test0, test41, test23, test45, test35, test2,
...--
>>>&g
Hi Patrik, unfortunately not. In fact its only happened once to me so far so may be a difficult one to reproduce.I will of course get back to you if I can find a trigger.
...
...
Hi Patrik, I have managed to repro it twice again. We have typesafe support so I will get in touch with them to discuss how best to send the repro setup, as it's not a simple attachment!
--
>>>>>>>>>> Read the docs: http://akka.io/docs/
>>>>>>>>>> Check the FAQ: http://doc.akka.io/docs/akka/current/additional/faq.html
>>>>>>>>>> Search the archives: https://groups.google.com/group/akka-user
---
You received this message because you are subscribed to the Google Groups "Akka User List" group.
To unsubscribe from this group and stop receiving emails from it, send an email to akka-user+...@googlegroups.com.
To post to this group, send email to akka...@googlegroups.com.
Visit this group at http://groups.google.com/group/akka-user.
For more options, visit https://groups.google.com/d/optout.
...
...
--
>>>>>>>>>> Read the docs: http://akka.io/docs/
>>>>>>>>>> Check the FAQ: http://doc.akka.io/docs/akka/current/additional/faq.html
>>>>>>>>>> Search the archives: https://groups.google.com/group/akka-user
---
You received this message because you are subscribed to the Google Groups "Akka User List" group.
To unsubscribe from this group and stop receiving emails from it, send an email to akka-user+...@googlegroups.com.
To post to this group, send email to akka...@googlegroups.com.
Visit this group at http://groups.google.com/group/akka-user.
For more options, visit https://groups.google.com/d/optout.
2015/06/16 00:00:00.472 [DEBUG] [ClusterSystem-akka.actor.default-dispatcher-21][LocalActorRefProvider(akka://ClusterSystem)] resolve of path sequence [/user/sharding/ReferralView#-947611826] failed 2015/06/16 00:00:00.472 [DEBUG] [ClusterSystem-akka.actor.default-dispatcher-21][LocalActorRefProvider(akka://ClusterSystem)] resolve of path sequence [/user/sharding/ReferralView#-947611826] failed 2015/06/16 00:00:00.472 [ERROR] [ClusterSystem-akka.actor.default-dispatcher-22][OneForOneStrategy] requirement failed: Shard [57] already allocated: State(Map(67 -> Actor[akka.tcp://Cluste...@172.31.10.125:9599/user/sharding/ReferralView#-575704996], 12 -> Actor[akka.tcp://Cluste...@172.31.15.250:9599/user/sharding/ReferralView#1263176985], 23 -> Actor[akka.tcp://Cluste...@172.31.15.250:9599/user/sharding/ReferralView#1263176985], 40 -> Actor[akka://ClusterSystem/user/sharding/ReferralView#-1114626538], 68 -> Actor[akka.tcp://Cluste...@172.31.15.250:9599/user/sharding/ReferralView#1263176985], 48 -> Actor[akka://ClusterSystem/user/sharding/ReferralView#-1114626538], 57 -> Actor[akka.tcp://Cluste...@172.31.15.250:9599/user/sharding/ReferralView#1263176985], 25 -> Actor[akka://ClusterSystem/user/sharding/ReferralView#-1114626538], 69 -> Actor[akka.tcp://Cluste...@172.31.15.250:9599/user/sharding/ReferralView#1263176985], 53 -> Actor[akka://ClusterSystem/user/sharding/ReferralView#-1114626538], 42 -> Actor[akka.tcp://Cluste...@172.31.10.125:9599/user/sharding/ReferralView#-575704996], 27 -> Actor[akka.tcp://Cluste...@172.31.10.125:9599/user/sharding/ReferralView#-575704996], 97 -> Actor[akka.tcp://Cluste...@172.31.10.125:9599/user/sharding/ReferralView#-575704996], 91 -> Actor[akka.tcp://Cluste...@172.31.10.125:9599/user/sharding/ReferralView#-575704996]),Map(Actor[akka.tcp://Cluste...@172.31.15.250:9599/user/sharding/ReferralView#-1086032504] -> Vector(), Actor[akka://ClusterSystem/user/sharding/ReferralView#-1934388853] -> Vector(), Actor[akka.tcp://Cluste...@172.31.10.125:9599/user/sharding/ReferralView#-575704996] -> Vector(42, 97, 67, 27, 91), Actor[akka.tcp://Cluste...@172.31.15.250:9599/user/sharding/ReferralView#1263176985] -> Vector(12, 23, 68, 69, 57), Actor[akka://ClusterSystem/user/sharding/ReferralView#-1114626538] -> Vector(48, 53, 25, 40)),Set()) java.lang.IllegalArgumentException: requirement failed: Shard [57] already allocated: State(Map(67 -> Actor[akka.tcp://Cluste...@172.31.10.125:9599/user/sharding/ReferralView#-575704996], 12 -> Actor[akka.tcp://Cluste...@172.31.15.250:9599/user/sharding/ReferralView#1263176985], 23 -> Actor[akka.tcp://Cluste...@172.31.15.250:9599/user/sharding/ReferralView#1263176985], 40 -> Actor[akka://ClusterSystem/user/sharding/ReferralView#-1114626538], 68 -> Actor[akka.tcp://Cluste...@172.31.15.250:9599/user/sharding/ReferralView#1263176985], 48 -> Actor[akka://ClusterSystem/user/sharding/ReferralView#-1114626538], 57 -> Actor[akka.tcp://Cluste...@172.31.15.250:9599/user/sharding/ReferralView#1263176985], 25 -> Actor[akka://ClusterSystem/user/sharding/ReferralView#-1114626538], 69 -> Actor[akka.tcp://Cluste...@172.31.15.250:9599/user/sharding/ReferralView#1263176985], 53 -> Actor[akka://ClusterSystem/user/sharding/ReferralView#-1114626538], 42 -> Actor[akka.tcp://Cluste...@172.31.10.125:9599/user/sharding/ReferralView#-575704996], 27 -> Actor[akka.tcp://Cluste...@172.31.10.125:9599/user/sharding/ReferralView#-575704996], 97 -> Actor[akka.tcp://Cluste...@172.31.10.125:9599/user/sharding/ReferralView#-575704996], 91 -> Actor[akka.tcp://Cluste...@172.31.10.125:9599/user/sharding/ReferralView#-575704996]),Map(Actor[akka.tcp://Cluste...@172.31.15.250:9599/user/sharding/ReferralView#-1086032504] -> Vector(), Actor[akka://ClusterSystem/user/sharding/ReferralView#-1934388853] -> Vector(), Actor[akka.tcp://Cluste...@172.31.10.125:9599/user/sharding/ReferralView#-575704996] -> Vector(42, 97, 67, 27, 91), Actor[akka.tcp://Cluste...@172.31.15.250:9599/user/sharding/ReferralView#1263176985] -> Vector(12, 23, 68, 69, 57), Actor[akka://ClusterSystem/user/sharding/ReferralView#-1114626538] -> Vector(48, 53, 25, 40)),Set()) at scala.Predef$.require(Predef.scala:219) ~[referrals:1.0] at akka.contrib.pattern.ShardCoordinator$Internal$State.updated(ClusterSharding.scala:1119) ~[referrals:1.0] at akka.contrib.pattern.ShardCoordinator$$anonfun$receiveRecover$1.applyOrElse(ClusterSharding.scala:1242) ~[referrals:1.0] at scala.runtime.AbstractPartialFunction.apply(AbstractPartialFunction.scala:36) ~[referrals:1.0] at akka.persistence.Eventsourced$$anonfun$akka$persistence$Eventsourced$$recoveryBehavior$1.applyOrElse(Eventsourced.scala:168) ~[referrals:1.0] at akka.persistence.Recovery$class.runReceive(Recovery.scala:48) ~[referrals:1.0] at akka.contrib.pattern.ShardCoordinator.runReceive(ClusterSharding.scala:1195) ~[referrals:1.0] at akka.persistence.Recovery$State$$anonfun$processPersistent$1.apply(Recovery.scala:33) ~[referrals:1.0] at akka.persistence.Recovery$State$$anonfun$processPersistent$1.apply(Recovery.scala:33) ~[referrals:1.0] at akka.persistence.Recovery$class.withCurrentPersistent(Recovery.scala:185) ~[referrals:1.0] at akka.contrib.pattern.ShardCoordinator.withCurrentPersistent(ClusterSharding.scala:1195) ~[referrals:1.0] at akka.persistence.Recovery$State$class.processPersistent(Recovery.scala:33) ~[referrals:1.0] at akka.persistence.Recovery$$anon$1.processPersistent(Recovery.scala:104) ~[referrals:1.0] at akka.persistence.Recovery$$anon$1.aroundReceive(Recovery.scala:110) ~[referrals:1.0] at akka.persistence.Recovery$class.aroundReceive(Recovery.scala:265) ~[referrals:1.0] at akka.contrib.pattern.ShardCoordinator.akka$persistence$Eventsourced$$super$aroundReceive(ClusterSharding.scala:1195) ~[referrals:1.0] at akka.persistence.Eventsourced$$anon$1.aroundReceive(Eventsourced.scala:35) ~[referrals:1.0] at akka.persistence.Eventsourced$class.aroundReceive(Eventsourced.scala:369) ~[referrals:1.0] at akka.contrib.pattern.ShardCoordinator.aroundReceive(ClusterSharding.scala:1195) ~[referrals:1.0] at akka.actor.ActorCell.receiveMessage(ActorCell.scala:516) [referrals:1.0] at akka.actor.ActorCell.invoke(ActorCell.scala:487) [referrals:1.0] at akka.dispatch.Mailbox.processMailbox(Mailbox.scala:238) [referrals:1.0] at akka.dispatch.Mailbox.run(Mailbox.scala:220) [referrals:1.0] at akka.dispatch.ForkJoinExecutorConfigurator$AkkaForkJoinTask.exec(AbstractDispatcher.scala:397) [referrals:1.0] at scala.concurrent.forkjoin.ForkJoinTask.doExec(ForkJoinTask.java:260) [referrals:1.0] at scala.concurrent.forkjoin.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:1339) [referrals:1.0] at scala.concurrent.forkjoin.ForkJoinPool.runWorker(ForkJoinPool.java:1979) [referrals:1.0] at scala.concurrent.forkjoin.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:107) [referrals:1.0]...
--
>>>>>>>>>> Read the docs: http://akka.io/docs/
>>>>>>>>>> Check the FAQ: http://doc.akka.io/docs/akka/current/additional/faq.html
>>>>>>>>>> Search the archives: https://groups.google.com/group/akka-user
---
You received this message because you are subscribed to the Google Groups "Akka User List" group.
To unsubscribe from this group and stop receiving emails from it, send an email to akka-user+...@googlegroups.com.
To post to this group, send email to akka...@googlegroups.com.
Visit this group at http://groups.google.com/group/akka-user.
For more options, visit https://groups.google.com/d/optout.
How did you use Leveldb journal? It can't really be used in a clustered system. It is possible to use it for demo or testing with shared journal, but that must not be used for production.
/Patrik
On Tue, Jun 16, 2015 at 3:07 AM, GG <gr...@makewonder.com> wrote:
A little more detail on my issue: We've found that if we simply move our leveldb out of the way, the issue goes away which seems to align with Patrik's earlier post indicating a possible problem in the persistence impl. We are currently using the leveldb plugin in native mode. There seems to be some issue during replay where a Region Actor failed to register with a "requirement failed" similar to Richards stack trace above:
2015/06/16 00:00:00.472 [DEBUG] [ClusterSystem-akka.actor.default-dispatcher-21][LocalActorRefProvider(akka://ClusterSystem)] resolve of path sequence [/user/sharding/ReferralView#-947611826] failed2015/06/16 00:00:00.472 [DEBUG] [ClusterSystem-akka.actor.default-dispatcher-21][LocalActorRefProvider(akka://ClusterSystem)] resolve of path sequence [/user/sharding/ReferralView#-947611826] failed
2015/06/16 00:00:00.472 [ERROR] [ClusterSystem-akka.actor.default-dispatcher-22][OneForOneStrategy] requirement failed: Shard [57] already allocated: State(Map(67 -> Actor[akka.tcp://ClusterSystem@172.31.10.125:9599/user/sharding/ReferralView#-575704996], 12 -> Actor[akka.tcp://ClusterSystem@172.31.15.250:9599/user/sharding/ReferralView#1263176985], 23 -> Actor[akka.tcp://ClusterSystem@172.31.15.250:9599/user/sharding/ReferralView#1263176985], 40 -> Actor[akka://ClusterSystem/user/sharding/ReferralView#-1114626538], 68 -> Actor[akka.tcp://ClusterSystem@172.31.15.250:9599/user/sharding/ReferralView#1263176985], 48 -> Actor[akka://ClusterSystem/user/sharding/ReferralView#-1114626538], 57 -> Actor[akka.tcp://ClusterSystem@172.31.15.250:9599/user/sharding/ReferralView#1263176985], 25 -> Actor[akka://ClusterSystem/user/sharding/ReferralView#-1114626538], 69 -> Actor[akka.tcp://ClusterSystem@172.31.15.250:9599/user/sharding/ReferralView#1263176985], 53 -> Actor[akka://ClusterSystem/user/sharding/ReferralView#-1114626538], 42 -> Actor[akka.tcp://ClusterSystem@172.31.10.125:9599/user/sharding/ReferralView#-575704996], 27 -> Actor[akka.tcp://ClusterSystem@172.31.10.125:9599/user/sharding/ReferralView#-575704996], 97 -> Actor[akka.tcp://ClusterSystem@172.31.10.125:9599/user/sharding/ReferralView#-575704996], 91 -> Actor[akka.tcp://ClusterSystem@172.31.10.125:9599/user/sharding/ReferralView#-575704996]),Map(Actor[akka.tcp://Cluste...@172.31.15.250:9599/user/sharding/ReferralView#-1086032504] -> Vector(), Actor[akka://ClusterSystem/user/sharding/ReferralView#-1934388853] -> Vector(), Actor[akka.tcp://ClusterSystem@172.31.10.125:9599/user/sharding/ReferralView#-575704996] -> Vector(42, 97, 67, 27, 91), Actor[akka.tcp://ClusterSystem@172.31.15.250:9599/user/sharding/ReferralView#1263176985] -> Vector(12, 23, 68, 69, 57), Actor[akka://ClusterSystem/user/sharding/ReferralView#-1114626538] -> Vector(48, 53, 25, 40)),Set()) java.lang.IllegalArgumentException: requirement failed: Shard [57] already allocated: State(Map(67 -> Actor[akka.tcp://ClusterSystem@172.31.10.125:9599/user/sharding/ReferralView#-575704996], 12 -> Actor[akka.tcp://ClusterSystem@172.31.15.250:9599/user/sharding/ReferralView#1263176985], 23 -> Actor[akka.tcp://ClusterSystem@172.31.15.250:9599/user/sharding/ReferralView#1263176985], 40 -> Actor[akka://ClusterSystem/user/sharding/ReferralView#-1114626538], 68 -> Actor[akka.tcp://ClusterSystem@172.31.15.250:9599/user/sharding/ReferralView#1263176985], 48 -> Actor[akka://ClusterSystem/user/sharding/ReferralView#-1114626538], 57 -> Actor[akka.tcp://ClusterSystem@172.31.15.250:9599/user/sharding/ReferralView#1263176985], 25 -> Actor[akka://ClusterSystem/user/sharding/ReferralView#-1114626538], 69 -> Actor[akka.tcp://ClusterSystem@172.31.15.250:9599/user/sharding/ReferralView#1263176985], 53 -> Actor[akka://ClusterSystem/user/sharding/ReferralView#-1114626538], 42 -> Actor[akka.tcp://ClusterSystem@172.31.10.125:9599/user/sharding/ReferralView#-575704996], 27 -> Actor[akka.tcp://ClusterSystem@172.31.10.125:9599/user/sharding/ReferralView#-575704996], 97 -> Actor[akka.tcp://ClusterSystem@172.31.10.125:9599/user/sharding/ReferralView#-575704996], 91 -> Actor[akka.tcp://ClusterSystem@172.31.10.125:9599/user/sharding/ReferralView#-575704996]),Map(Actor[akka.tcp://Cluste...@172.31.15.250:9599/user/sharding/ReferralView#-1086032504] -> Vector(), Actor[akka://ClusterSystem/user/sharding/ReferralView#-1934388853] -> Vector(), Actor[akka.tcp://ClusterSystem@172.31.10.125:9599/user/sharding/ReferralView#-575704996] -> Vector(42, 97, 67, 27, 91), Actor[akka.tcp://ClusterSystem@172.31.15.250:9599/user/sharding/ReferralView#1263176985] -> Vector(12, 23, 68, 69, 57), Actor[akka://ClusterSystem/user/sharding/ReferralView#-1114626538] -> Vector(48, 53, 25, 40)),Set())
Patrick,Thanks for your reply. We are using leveldb in a cluster system following the SharedLevelDb store instructions in the akka persistence docs. My understanding is that it shouldn't be used in production as it's a single point of failure. We eventually want to move to a more available storage system but for developing and testing our application, this was the fastest way to get started.
If the issue at hand can, with 100% certainty, be blamed on our usage of a shared leveldb then we can move forward and invest in another persistence implementation. If, on the other hand, it's the result of a bug in akka remoting or clustering then we'll need to dig into and resolve that issue before we can confidently use those technologies in production.
Do you have any insight on this Patrik? If the solution is to move to another persistence layer, we're considering Cassandra, Dynamo and Kafka (in roughly that order) as our production impls. Do you have any insight into the maturity of any of those impls?
Thanks
On Tuesday, June 16, 2015 at 1:08:22 AM UTC-7, Patrik Nordwall wrote:
How did you use Leveldb journal? It can't really be used in a clustered system. It is possible to use it for demo or testing with shared journal, but that must not be used for production.
/Patrik
On Tue, Jun 16, 2015 at 3:07 AM, GG <gr...@makewonder.com> wrote:
A little more detail on my issue: We've found that if we simply move our leveldb out of the way, the issue goes away which seems to align with Patrik's earlier post indicating a possible problem in the persistence impl. We are currently using the leveldb plugin in native mode. There seems to be some issue during replay where a Region Actor failed to register with a "requirement failed" similar to Richards stack trace above:
2015/06/16 00:00:00.472 [DEBUG] [ClusterSystem-akka.actor.default-dispatcher-21][LocalActorRefProvider(akka://ClusterSystem)] resolve of path sequence [/user/sharding/ReferralView#-947611826] failed2015/06/16 00:00:00.472 [DEBUG] [ClusterSystem-akka.actor.default-dispatcher-21][LocalActorRefProvider(akka://ClusterSystem)] resolve of path sequence [/user/sharding/ReferralView#-947611826] failed
2015/06/16 00:00:00.472 [ERROR] [ClusterSystem-akka.actor.default-dispatcher-22][OneForOneStrategy] requirement failed: Shard [57] already allocated: State(Map(67 -> Actor[akka.tcp://Cluste...@172.31.10.125:9599/user/sharding/ReferralView#-575704996], 12 -> Actor[akka.tcp://Cluste...@172.31.15.250:9599/user/sharding/ReferralView#1263176985], 23 -> Actor[akka.tcp://Cluste...@172.31.15.250:9599/user/sharding/ReferralView#1263176985], 40 -> Actor[akka://ClusterSystem/user/sharding/ReferralView#-1114626538], 68 -> Actor[akka.tcp://Cluste...@172.31.15.250:9599/user/sharding/ReferralView#1263176985], 48 -> Actor[akka://ClusterSystem/user/sharding/ReferralView#-1114626538], 57 -> Actor[akka.tcp://Cluste...@172.31.15.250:9599/user/sharding/ReferralView#1263176985], 25 -> Actor[akka://ClusterSystem/user/sharding/ReferralView#-1114626538], 69 -> Actor[akka.tcp://Cluste...@172.31.15.250:9599/user/sharding/ReferralView#1263176985], 53 -> Actor[akka://ClusterSystem/user/sharding/ReferralView#-1114626538], 42 -> Actor[akka.tcp://Cluste...@172.31.10.125:9599/user/sharding/ReferralView#-575704996], 27 -> Actor[akka.tcp://Cluste...@172.31.10.125:9599/user/sharding/ReferralView#-575704996], 97 -> Actor[akka.tcp://Cluste...@172.31.10.125:9599/user/sharding/ReferralView#-575704996], 91 -> Actor[akka.tcp://Cluste...@172.31.10.125:9599/user/sharding/ReferralView#-575704996]),Map(Actor[akka.tcp://Cluste...@172.31.15.250:9599/user/sharding/ReferralView#-1086032504] -> Vector(), Actor[akka://ClusterSystem/user/sharding/ReferralView#-1934388853] -> Vector(), Actor[akka.tcp://Cluste...@172.31.10.125:9599/user/sharding/ReferralView#-575704996] -> Vector(42, 97, 67, 27, 91), Actor[akka.tcp://Cluste...@172.31.15.250:9599/user/sharding/ReferralView#1263176985] -> Vector(12, 23, 68, 69, 57), Actor[akka://ClusterSystem/user/sharding/ReferralView#-1114626538] -> Vector(48, 53, 25, 40)),Set()) java.lang.IllegalArgumentException: requirement failed: Shard [57] already allocated: State(Map(67 -> Actor[akka.tcp://Cluste...@172.31.10.125:9599/user/sharding/ReferralView#-575704996], 12 -> Actor[akka.tcp://Cluste...@172.31.15.250:9599/user/sharding/ReferralView#1263176985], 23 -> Actor[akka.tcp://Cluste...@172.31.15.250:9599/user/sharding/ReferralView#1263176985], 40 -> Actor[akka://ClusterSystem/user/sharding/ReferralView#-1114626538], 68 -> Actor[akka.tcp://Cluste...@172.31.15.250:9599/user/sharding/ReferralView#1263176985], 48 -> Actor[akka://ClusterSystem/user/sharding/ReferralView#-1114626538], 57 -> Actor[akka.tcp://Cluste...@172.31.15.250:9599/user/sharding/ReferralView#1263176985], 25 -> Actor[akka://ClusterSystem/user/sharding/ReferralView#-1114626538], 69 -> Actor[akka.tcp://Cluste...@172.31.15.250:9599/user/sharding/ReferralView#1263176985], 53 -> Actor[akka://ClusterSystem/user/sharding/ReferralView#-1114626538], 42 -> Actor[akka.tcp://Cluste...@172.31.10.125:9599/user/sharding/ReferralView#-575704996], 27 -> Actor[akka.tcp://Cluste...@172.31.10.125:9599/user/sharding/ReferralView#-575704996], 97 -> Actor[akka.tcp://Cluste...@172.31.10.125:9599/user/sharding/ReferralView#-575704996], 91 -> Actor[akka.tcp://Cluste...@172.31.10.125:9599/user/sharding/ReferralView#-575704996]),Map(Actor[akka.tcp://Cluste...@172.31.15.250:9599/user/sharding/ReferralView#-1086032504] -> Vector(), Actor[akka://ClusterSystem/user/sharding/ReferralView#-1934388853] -> Vector(), Actor[akka.tcp://Cluste...@172.31.10.125:9599/user/sharding/ReferralView#-575704996] -> Vector(42, 97, 67, 27, 91), Actor[akka.tcp://Cluste...@172.31.15.250:9599/user/sharding/ReferralView#1263176985] -> Vector(12, 23, 68, 69, 57), Actor[akka://ClusterSystem/user/sharding/ReferralView#-1114626538] -> Vector(48, 53, 25, 40)),Set())
On Tue, Jun 16, 2015 at 7:44 PM, GG <gr...@makewonder.com> wrote:Patrick,Thanks for your reply. We are using leveldb in a cluster system following the SharedLevelDb store instructions in the akka persistence docs. My understanding is that it shouldn't be used in production as it's a single point of failure. We eventually want to move to a more available storage system but for developing and testing our application, this was the fastest way to get started.If the issue at hand can, with 100% certainty, be blamed on our usage of a shared leveldb then we can move forward and invest in another persistence implementation. If, on the other hand, it's the result of a bug in akka remoting or clustering then we'll need to dig into and resolve that issue before we can confidently use those technologies in production.I can't be 100% of course, and if you want me to investigate it we have to do that in the Typesafe support channel (contact in...@typesafe.com if you are not subscriber).Do you have any insight on this Patrik? If the solution is to move to another persistence layer, we're considering Cassandra, Dynamo and Kafka (in roughly that order) as our production impls. Do you have any insight into the maturity of any of those impls?Cassandra should be a good first choice./Patrik
Thanks
On Tuesday, June 16, 2015 at 1:08:22 AM UTC-7, Patrik Nordwall wrote:
How did you use Leveldb journal? It can't really be used in a clustered system. It is possible to use it for demo or testing with shared journal, but that must not be used for production.
/Patrik
On Tue, Jun 16, 2015 at 3:07 AM, GG <gr...@makewonder.com> wrote:
A little more detail on my issue: We've found that if we simply move our leveldb out of the way, the issue goes away which seems to align with Patrik's earlier post indicating a possible problem in the persistence impl. We are currently using the leveldb plugin in native mode. There seems to be some issue during replay where a Region Actor failed to register with a "requirement failed" similar to Richards stack trace above:
2015/06/16 00:00:00.472 [DEBUG] [ClusterSystem-akka.actor.default-dispatcher-21][LocalActorRefProvider(akka://ClusterSystem)] resolve of path sequence [/user/sharding/ReferralView#-947611826] failed2015/06/16 00:00:00.472 [DEBUG] [ClusterSystem-akka.actor.default-dispatcher-21][LocalActorRefProvider(akka://ClusterSystem)] resolve of path sequence [/user/sharding/ReferralView#-947611826] failed
2015/06/16 00:00:00.472 [ERROR] [ClusterSystem-akka.actor.default-dispatcher-22][OneForOneStrategy] requirement failed: Shard [57] already allocated: State(Map(67 -> Actor[akka.tcp://ClusterSystem@172.31.10.125:9599/user/sharding/ReferralView#-575704996], 12 -> Actor[akka.tcp://ClusterSystem@172.31.15.250:9599/user/sharding/ReferralView#1263176985], 23 -> Actor[akka.tcp://ClusterSystem@172.31.15.250:9599/user/sharding/ReferralView#1263176985], 40 -> Actor[akka://ClusterSystem/user/sharding/ReferralView#-1114626538], 68 -> Actor[akka.tcp://ClusterSystem@172.31.15.250:9599/user/sharding/ReferralView#1263176985], 48 -> Actor[akka://ClusterSystem/user/sharding/ReferralView#-1114626538], 57 -> Actor[akka.tcp://ClusterSystem@172.31.15.250:9599/user/sharding/ReferralView#1263176985], 25 -> Actor[akka://ClusterSystem/user/sharding/ReferralView#-1114626538], 69 -> Actor[akka.tcp://ClusterSystem@172.31.15.250:9599/user/sharding/ReferralView#1263176985], 53 -> Actor[akka://ClusterSystem/user/sharding/ReferralView#-1114626538], 42 -> Actor[akka.tcp://ClusterSystem@172.31.10.125:9599/user/sharding/ReferralView#-575704996], 27 -> Actor[akka.tcp://ClusterSystem@172.31.10.125:9599/user/sharding/ReferralView#-575704996], 97 -> Actor[akka.tcp://ClusterSystem@172.31.10.125:9599/user/sharding/ReferralView#-575704996], 91 -> Actor[akka.tcp://ClusterSystem@172.31.10.125:9599/user/sharding/ReferralView#-575704996]),Map(Actor[akka.tcp://Cluste...@172.31.15.250:9599/user/sharding/ReferralView#-1086032504] -> Vector(), Actor[akka://ClusterSystem/user/sharding/ReferralView#-1934388853] -> Vector(), Actor[akka.tcp://ClusterSystem@172.31.10.125:9599/user/sharding/ReferralView#-575704996] -> Vector(42, 97, 67, 27, 91), Actor[akka.tcp://ClusterSystem@172.31.15.250:9599/user/sharding/ReferralView#1263176985] -> Vector(12, 23, 68, 69, 57), Actor[akka://ClusterSystem/user/sharding/ReferralView#-1114626538] -> Vector(48, 53, 25, 40)),Set()) java.lang.IllegalArgumentException: requirement failed: Shard [57] already allocated: State(Map(67 -> Actor[akka.tcp://ClusterSystem@172.31.10.125:9599/user/sharding/ReferralView#-575704996], 12 -> Actor[akka.tcp://ClusterSystem@172.31.15.250:9599/user/sharding/ReferralView#1263176985], 23 -> Actor[akka.tcp://ClusterSystem@172.31.15.250:9599/user/sharding/ReferralView#1263176985], 40 -> Actor[akka://ClusterSystem/user/sharding/ReferralView#-1114626538], 68 -> Actor[akka.tcp://ClusterSystem@172.31.15.250:9599/user/sharding/ReferralView#1263176985], 48 -> Actor[akka://ClusterSystem/user/sharding/ReferralView#-1114626538], 57 -> Actor[akka.tcp://ClusterSystem@172.31.15.250:9599/user/sharding/ReferralView#1263176985], 25 -> Actor[akka://ClusterSystem/user/sharding/ReferralView#-1114626538], 69 -> Actor[akka.tcp://ClusterSystem@172.31.15.250:9599/user/sharding/ReferralView#1263176985], 53 -> Actor[akka://ClusterSystem/user/sharding/ReferralView#-1114626538], 42 -> Actor[akka.tcp://ClusterSystem@172.31.10.125:9599/user/sharding/ReferralView#-575704996], 27 -> Actor[akka.tcp://ClusterSystem@172.31.10.125:9599/user/sharding/ReferralView#-575704996], 97 -> Actor[akka.tcp://ClusterSystem@172.31.10.125:9599/user/sharding/ReferralView#-575704996], 91 -> Actor[akka.tcp://ClusterSystem@172.31.10.125:9599/user/sharding/ReferralView#-575704996]),Map(Actor[akka.tcp://Cluste...@172.31.15.250:9599/user/sharding/ReferralView#-1086032504] -> Vector(), Actor[akka://ClusterSystem/user/sharding/ReferralView#-1934388853] -> Vector(), Actor[akka.tcp://ClusterSystem@172.31.10.125:9599/user/sharding/ReferralView#-575704996] -> Vector(42, 97, 67, 27, 91), Actor[akka.tcp://ClusterSystem@172.31.15.250:9599/user/sharding/ReferralView#1263176985] -> Vector(12, 23, 68, 69, 57), Actor[akka://ClusterSystem/user/sharding/ReferralView#-1114626538] -> Vector(48, 53, 25, 40)),Set())
...
Alright. We'll give Cassandra a try. Thanks for the help Patrik.
On Tuesday, June 16, 2015 at 1:05:39 PM UTC-7, Patrik Nordwall wrote:On Tue, Jun 16, 2015 at 7:44 PM, GG <gr...@makewonder.com> wrote:Patrick,Thanks for your reply. We are using leveldb in a cluster system following the SharedLevelDb store instructions in the akka persistence docs. My understanding is that it shouldn't be used in production as it's a single point of failure. We eventually want to move to a more available storage system but for developing and testing our application, this was the fastest way to get started.If the issue at hand can, with 100% certainty, be blamed on our usage of a shared leveldb then we can move forward and invest in another persistence implementation. If, on the other hand, it's the result of a bug in akka remoting or clustering then we'll need to dig into and resolve that issue before we can confidently use those technologies in production.I can't be 100% of course, and if you want me to investigate it we have to do that in the Typesafe support channel (contact in...@typesafe.com if you are not subscriber).
Do you have any insight on this Patrik? If the solution is to move to another persistence layer, we're considering Cassandra, Dynamo and Kafka (in roughly that order) as our production impls. Do you have any insight into the maturity of any of those impls?Cassandra should be a good first choice./Patrik
Thanks
On Tuesday, June 16, 2015 at 1:08:22 AM UTC-7, Patrik Nordwall wrote:
How did you use Leveldb journal? It can't really be used in a clustered system. It is possible to use it for demo or testing with shared journal, but that must not be used for production.
/Patrik
On Tue, Jun 16, 2015 at 3:07 AM, GG <gr...@makewonder.com> wrote:
A little more detail on my issue: We've found that if we simply move our leveldb out of the way, the issue goes away which seems to align with Patrik's earlier post indicating a possible problem in the persistence impl. We are currently using the leveldb plugin in native mode. There seems to be some issue during replay where a Region Actor failed to register with a "requirement failed" similar to Richards stack trace above:
2015/06/16 00:00:00.472 [DEBUG] [ClusterSystem-akka.actor.default-dispatcher-21][LocalActorRefProvider(akka://ClusterSystem)] resolve of path sequence [/user/sharding/ReferralView#-947611826] failed2015/06/16 00:00:00.472 [DEBUG] [ClusterSystem-akka.actor.default-dispatcher-21][LocalActorRefProvider(akka://ClusterSystem)] resolve of path sequence [/user/sharding/ReferralView#-947611826] failed
2015/06/16 00:00:00.472 [ERROR] [ClusterSystem-akka.actor.default-dispatcher-22][OneForOneStrategy] requirement failed: Shard [57] already allocated: State(Map(67 -> Actor[akka.tcp://Cluste...@172.31.10.125:9599/user/sharding/ReferralView#-575704996], 12 -> Actor[akka.tcp://Cluste...@172.31.15.250:9599/user/sharding/ReferralView#1263176985], 23 -> Actor[akka.tcp://Cluste...@172.31.15.250:9599/user/sharding/ReferralView#1263176985], 40 -> Actor[akka://ClusterSystem/user/sharding/ReferralView#-1114626538], 68 -> Actor[akka.tcp://Cluste...@172.31.15.250:9599/user/sharding/ReferralView#1263176985], 48 -> Actor[akka://ClusterSystem/user/sharding/ReferralView#-1114626538], 57 -> Actor[akka.tcp://Cluste...@172.31.15.250:9599/user/sharding/ReferralView#1263176985], 25 -> Actor[akka://ClusterSystem/user/sharding/ReferralView#-1114626538], 69 -> Actor[akka.tcp://Cluste...@172.31.15.250:9599/user/sharding/ReferralView#1263176985], 53 -> Actor[akka://ClusterSystem/user/sharding/ReferralView#-1114626538], 42 -> Actor[akka.tcp://Cluste...@172.31.10.125:9599/user/sharding/ReferralView#-575704996], 27 -> Actor[akka.tcp://Cluste...@172.31.10.125:9599/user/sharding/ReferralView#-575704996], 97 -> Actor[akka.tcp://Cluste...@172.31.10.125:9599/user/sharding/ReferralView#-575704996], 91 -> Actor[akka.tcp://Cluste...@172.31.10.125:9599/user/sharding/ReferralView#-575704996]),Map(Actor[akka.tcp://Cluste...@172.31.15.250:9599/user/sharding/ReferralView#-1086032504] -> Vector(), Actor[akka://ClusterSystem/user/sharding/ReferralView#-1934388853] -> Vector(), Actor[akka.tcp://Cluste...@172.31.10.125:9599/user/sharding/ReferralView#-575704996] -> Vector(42, 97, 67, 27, 91), Actor[akka.tcp://Cluste...@172.31.15.250:9599/user/sharding/ReferralView#1263176985] -> Vector(12, 23, 68, 69, 57), Actor[akka://ClusterSystem/user/sharding/ReferralView#-1114626538] -> Vector(48, 53, 25, 40)),Set()) java.lang.IllegalArgumentException: requirement failed: Shard [57] already allocated: State(Map(67 -> Actor[akka.tcp://Cluste...@172.31.10.125:9599/user/sharding/ReferralView#-575704996], 12 -> Actor[akka.tcp://Cluste...@172.31.15.250:9599/user/sharding/ReferralView#1263176985], 23 -> Actor[akka.tcp://Cluste...@172.31.15.250:9599/user/sharding/ReferralView#1263176985], 40 -> Actor[akka://ClusterSystem/user/sharding/ReferralView#-1114626538], 68 -> Actor[akka.tcp://Cluste...@172.31.15.250:9599/user/sharding/ReferralView#1263176985], 48 -> Actor[akka://ClusterSystem/user/sharding/ReferralView#-1114626538], 57 -> Actor[akka.tcp://Cluste...@172.31.15.250:9599/user/sharding/ReferralView#1263176985], 25 -> Actor[akka://ClusterSystem/user/sharding/ReferralView#-1114626538], 69 -> Actor[akka.tcp://Cluste...@172.31.15.250:9599/user/sharding/ReferralView#1263176985], 53 -> Actor[akka://ClusterSystem/user/sharding/ReferralView#-1114626538], 42 -> Actor[akka.tcp://Cluste...@172.31.10.125:9599/user/sharding/ReferralView#-575704996], 27 -> Actor[akka.tcp://Cluste...@172.31.10.125:9599/user/sharding/ReferralView#-575704996], 97 -> Actor[akka.tcp://Cluste...@172.31.10.125:9599/user/sharding/ReferralView#-575704996], 91 -> Actor[akka.tcp://Cluste...@172.31.10.125:9599/user/sharding/ReferralView#-575704996]),Map(Actor[akka.tcp://Cluste...@172.31.15.250:9599/user/sharding/ReferralView#-1086032504] -> Vector(), Actor[akka://ClusterSystem/user/sharding/ReferralView#-1934388853] -> Vector(), Actor[akka.tcp://Cluste...@172.31.10.125:9599/user/sharding/ReferralView#-575704996] -> Vector(42, 97, 67, 27, 91), Actor[akka.tcp://Cluste...@172.31.15.250:9599/user/sharding/ReferralView#1263176985] -> Vector(12, 23, 68, 69, 57), Actor[akka://ClusterSystem/user/sharding/ReferralView#-1114626538] -> Vector(48, 53, 25, 40)),Set())
It's been a while! But just for reference, Patrik investigated my issue at the time and we came to the conclusion I had accidentally created two clusters writing to the same database (I had not set up my seed nodes in a resilient way as I was only doing a prototype). Once I fixed this the issue was never seen again.
You received this message because you are subscribed to a topic in the Google Groups "Akka User List" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/akka-user/4lBUX7N7W6k/unsubscribe.
To unsubscribe from this group and all its topics, send an email to akka-user+...@googlegroups.com.
2015-08-02 05:33:30.138 05:33:30.138UTC [Device] ERROR akka.actor.OneForOneStrategy DeviceSvc-akka.actor.default-dispatcher-3 akka://DeviceSvc/user/sharding/UserDeviceIndexCoordinator/singleton/coordinator - requirement failed: Shard [2] already allocated: State(Map(-2 -> Actor[akka.tcp://Devi...@172.31.4.174:8108/user/sharding/UserDeviceIndex#-360404203], 0 -> Actor[akka.tcp://Devi...@172.31.4.174:8108/user/sharding/UserDeviceIndex#-360404203], 2 -> Actor[akka.tcp://Devi...@172.31.4.174:8108/user/sharding/UserDeviceIndex#-360404203], -1 -> Actor[akka.tcp://Devi...@172.31.13.57:8108/user/sharding/UserDeviceIndex#855444773], 3 -> Actor[akka.tcp://Devi...@172.31.4.174:8108/user/sharding/UserDeviceIndex#-360404203]),Map(Actor[akka.tcp://Devi...@172.31.4.174:8108/user/sharding/UserDeviceIndex#-360404203] -> Vector(2, 3, -2, 0), Actor[akka.tcp://Devi...@172.31.13.57:8108/user/sharding/UserDeviceIndex#855444773] -> Vector(-1)),Set())
> java.lang.IllegalArgumentException: requirement failed: Shard [2] already allocated: State(Map(-2 -> Actor[akka.tcp://Devi...@172.31.4.174:8108/user/sharding/UserDeviceIndex#-360404203], 0 -> Actor[akka.tcp://Devi...@172.31.4.174:8108/user/sharding/UserDeviceIndex#-360404203], 2 -> Actor[akka.tcp://Devi...@172.31.4.174:8108/user/sharding/UserDeviceIndex#-360404203], -1 -> Actor[akka.tcp://Devi...@172.31.13.57:8108/user/sharding/UserDeviceIndex#855444773], 3 -> Actor[akka.tcp://Devi...@172.31.4.174:8108/user/sharding/UserDeviceIndex#-360404203]),Map(Actor[akka.tcp://Devi...@172.31.4.174:8108/user/sharding/UserDeviceIndex#-360404203] -> Vector(2, 3, -2, 0), Actor[akka.tcp://Devi...@172.31.13.57:8108/user/sharding/UserDeviceIndex#855444773] -> Vector(-1)),Set())
> at scala.Predef$.require(Predef.scala:219) ~[org.scala-lang.scala-library-2.11.6.jar:na]
> at akka.contrib.pattern.ShardCoordinator$Internal$State.updated(ClusterSharding.scala:1119) ~[com.typesafe.akka.akka-contrib_2.11-2.3.11.jar:2.3.11]
> at akka.contrib.pattern.ShardCoordinator$$anonfun$receiveRecover$1.applyOrElse(ClusterSharding.scala:1242) ~[com.typesafe.akka.akka-contrib_2.11-2.3.11.jar:2.3.11]
> at scala.runtime.AbstractPartialFunction.apply(AbstractPartialFunction.scala:36) ~[org.scala-lang.scala-library-2.11.6.jar:na]
> at akka.persistence.Eventsourced$$anonfun$akka$persistence$Eventsourced$$recoveryBehavior$1.applyOrElse(Eventsourced.scala:168) ~[com.typesafe.akka.akka-persistence-experimental_2.11-2.3.11.jar:na]
> at akka.persistence.Recovery$class.runReceive(Recovery.scala:48) ~[com.typesafe.akka.akka-persistence-experimental_2.11-2.3.11.jar:na]
> at akka.contrib.pattern.ShardCoordinator.runReceive(ClusterSharding.scala:1195) ~[com.typesafe.akka.akka-contrib_2.11-2.3.11.jar:2.3.11]
> at akka.persistence.Recovery$State$$anonfun$processPersistent$1.apply(Recovery.scala:33) ~[com.typesafe.akka.akka-persistence-experimental_2.11-2.3.11.jar:na]
> at akka.persistence.Recovery$State$$anonfun$processPersistent$1.apply(Recovery.scala:33) ~[com.typesafe.akka.akka-persistence-experimental_2.11-2.3.11.jar:na]
> at akka.persistence.Recovery$class.withCurrentPersistent(Recovery.scala:185) ~[com.typesafe.akka.akka-persistence-experimental_2.11-2.3.11.jar:na]
> at akka.contrib.pattern.ShardCoordinator.withCurrentPersistent(ClusterSharding.scala:1195) ~[com.typesafe.akka.akka-contrib_2.11-2.3.11.jar:2.3.11]
> at akka.persistence.Recovery$State$class.processPersistent(Recovery.scala:33) ~[com.typesafe.akka.akka-persistence-experimental_2.11-2.3.11.jar:na]