These are chat archives for akkadotnet/akka.net

25th
Oct 2017
Kris Schepers
@schepersk
Oct 25 2017 07:42
@Horusiath Thanks! Any idea when the SqlServer implementation will be updated?
Bartosz Sypytkowski
@Horusiath
Oct 25 2017 07:43
@schepersk PR is ready akkadotnet/Akka.Persistence.SqlServer#88 - just needs to be merged and published
jalchr
@jalchr
Oct 25 2017 07:47

It is mentioned here http://bartoszsypytkowski.com/how-akka-net-persistence-works/ , the following:

... your persistent actors should be singletons - there should never be more than one instance of an actor using the same PersistentId at the time.

My question is: how does persistence actors work in a Cluster ?
For example, if I have 2 nodes, how is the behavior of "OnRecovery" ... and a lot of other questions ?

Bartosz Sypytkowski
@Horusiath
Oct 25 2017 07:54
@jalchr same applies to cluster. Only one instance of an actor per logical persistenceId active at the same time. You can use i.e. Akka.Cluster.Sharding to achieve that
anthonyhawes
@anthonyhawes
Oct 25 2017 08:46
@Horusiath Is the longer term plan to implement batching journals for other sql providers or is this just for SQL Server?
Bartosz Sypytkowski
@Horusiath
Oct 25 2017 08:57
@anthonyhawes SQLite supports it as well. It's build to be a generic one. I have an open PR for Postgres, but it needs to be updated
chipdice
@chipdice
Oct 25 2017 12:38
When debugging, is there a way to not have my cluster node get disaccociated when I am at a breakpoint?
Paweł Bańka
@pmbanka
Oct 25 2017 13:19
@Aaronontheweb are there any plans to open source Petabridge.Cmd? It would be nice to be able to PR bug fixes :)
fleed
@fleed
Oct 25 2017 13:37
hi @Aaronontheweb . How does the CreateActorIfNotExist look like with an IActorRefFactory?
Thomas Tomanek
@thomastomanek
Oct 25 2017 14:25
If I do a GracefulStop on a child and either block or await the result, should I expect an immediate call to create another child with an identical name to always succeed? i.e. when GracefulStop completes is the child guaranteed to be removed from the parent Children collection?
Aaron Stannard
@Aaronontheweb
Oct 25 2017 15:23
@pmbanka no plans as of this time
but you can report bugs here (link pending... )
@fleed can't do one unfortunately, since the IActorRefFactory doesn't expose a GetChild method since it can technically be an ActorSystem
guess I'd go ahead and use the IActorRefFactory to create an ActorSelection to that actor and call ResolveOne on the actorselection
and see if that returns a result or not
@pmbanka oh snap, you did report a bunch of issues here: https://github.com/petabridge/petabridge.cmd-issues/issues
weird, wtf didn't I get any email notifications Github :worried:
I've been able to repro that serialization error you reported
but not very frequently
Paweł Bańka
@pmbanka
Oct 25 2017 15:27
@Aaronontheweb no worries ;) it is just that I'm trying to grok a rather large actor hierarchy, and I'd save a lot of time if I could just fix the bug
it is 100% reporducible in our system
Aaron Stannard
@Aaronontheweb
Oct 25 2017 15:27
ah, so that's timing out on a really large actor hierarchy?
err, throwing that error?
Paweł Bańka
@pmbanka
Oct 25 2017 15:28
yes, it throws every time I run it
(I'm talking about Destination array is not long enough to copy all the items in the collection. Check array index and length.)
Aaron Stannard
@Aaronontheweb
Oct 25 2017 15:29
I'll look into that
I'm planning on doing another near-term update to Petabridge.Cmd to add support for some new types of commands
Paweł Bańka
@pmbanka
Oct 25 2017 15:30
Thanks!
Aaron Stannard
@Aaronontheweb
Oct 25 2017 15:30
but I can do a bugfix release sooner
Paweł Bańka
@pmbanka
Oct 25 2017 15:30
That's great :+1:
Aaron Stannard
@Aaronontheweb
Oct 25 2017 15:31
I'm planning on tacking on a Web UI for Petabridge.Cmd at some point
as part of a longer-term project
really it's the actor heirarchy visualization that is the killer feature for that, plus some of the new stuff I'm cooking up
Alfredo Herrera
@alfredherr
Oct 25 2017 18:45
That sounds awesome @Aaronontheweb
Aaron Stannard
@Aaronontheweb
Oct 25 2017 18:45
it should be pretty cool
the cluster visualization stuff will be in there too
all of the stuff in the Petabridge.Cmd.Cluster module