These are chat archives for akkadotnet/akka.net

4th
Sep 2016
Daniel D'Agostino
@dandago2_twitter
Sep 04 2016 00:00
does not happen if I debug or if I remove the call to FlushAsync()
note: the upper flush was just to test... normally it happens at the Dispose()
Daniel D'Agostino
@dandago2_twitter
Sep 04 2016 00:06
Re the config I get it, I have to use:
        filePath = Context.System.Settings.Config
            .GetConfig("akka").GetString("logfilepath", filePath);
Abdelmawla Mohamed
@abdomohamed
Sep 04 2016 05:17
is snapshot recovery for AtLeastOnceDeliveryReceiveActor working ? because I'm trying to make it work but no lock so far. Although, recovering journal is working nice.
I'm using mongodb persistence as well
Bartosz Sypytkowski
@Horusiath
Sep 04 2016 07:12
@dandago2_twitter if I remember, there was some bug similar to that behavior (I don't remember if fix was PRed, but not published yet), but I cannot find it in the issue tracker. Can you write down an issue on github?
@abdomohamed how are you using it?
Daniel D'Agostino
@dandago2_twitter
Sep 04 2016 08:08
Issue: akkadotnet/akka.net#2290
Alex Valuyskiy
@alexvaluyskiy
Sep 04 2016 10:06
Iuuu.
Abdelmawla Mohamed
@abdomohamed
Sep 04 2016 14:52
@ @Horusiath I've created this sample repo to reproduce issue https://github.com/abdomohamed/atleastonceactor
Bartosz Sypytkowski
@Horusiath
Sep 04 2016 14:59
@abdomohamed could you specify, what's wrong with your example?
for what I see, you're not persisting events, only making snapshots
inside akka.persistence snapshots are used only as an optimization for journaling events - they are not meant to be used on their own
Abdelmawla Mohamed
@abdomohamed
Sep 04 2016 15:21
@Horusiath I'm already persisting commands which it will eventually will be mapped to events but just for demoing purpose I've left it as it is. https://github.com/abdomohamed/atleastonceactor/blob/master/src/AtLeastOnceDelivery.Console/MyAtLeastOnceDeliveryActor.cs#L29
Do I misunderstood something ?
Abdelmawla Mohamed
@abdomohamed
Sep 04 2016 15:37
example here doesn't recover snapshots it's only recovering journals
Bartosz Sypytkowski
@Horusiath
Sep 04 2016 15:56
you're right - I think this may be some problem with mongodb plugin i.e. if I remember correctly mongodb required some special events\snapshot registration in order to use bson serializer
Marc Piechura
@marcpiechura
Sep 04 2016 16:03
@abdomohamed have you registered your events in the BsonClassMap?
akkadotnet/Akka.Persistence.MongoDB#23. that's probably the problem
Daniel D'Agostino
@dandago2_twitter
Sep 04 2016 19:49
I was thinking of writing an Akka .NET adapter for my .NET Settings Framework (which is this http://gigi.nullneuron.net/gigilabs/projects/net-settings-framework/ ). It would wrap the config system, so you'd get settings doing something like:
configKeyProvider.Get<int>("akka.something.key", defaultValue);
It makes accessing config settings easier (for basic types), and is DI-friendly.
Is this something that could bring value, or is it unnecessary?
Marc Piechura
@marcpiechura
Sep 04 2016 20:40
What would be the benefit? You can do the same with hocon directly
I assume you're referring to your question above where you call GetConfig("Akka").GetInt("key"), you can also call GetInt("akka.key")
Valeriy Reutskiy
@vvreutskiy
Sep 04 2016 20:50
Can I use Akka.Persistence.MongoDB to store Akka.Cluster.Sharding journal? I am getting Akka.Cluster.Sharding.PersistentShardCoordinator: Persistence failure when replaying events for persistenceId [/user/sharding/UserActorCoordinator/singleton/coordinator]. Last known sequence number [0] when I using it as shard journal
Bartosz Sypytkowski
@Horusiath
Sep 04 2016 22:07
@vvreutskiy mongodb plugin requires explicit registration of stored event types - I'm not sure if this goes in line with cluster sharding events (there are a lot of them, possibly some are internal)