Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
  • 13:10
    zbynek001 opened #4000
  • 11:20
    IgorFedchenko commented #3973
  • 11:20
    IgorFedchenko commented #3973
  • 11:18
    IgorFedchenko commented #3973
  • 10:47
    IgorFedchenko synchronize #3973
  • 10:13
    valdisz commented #3921
  • Oct 21 15:57
    Aaronontheweb closed #3877
  • Oct 21 15:57
    Aaronontheweb commented #3877
  • Oct 21 15:56

    Aaronontheweb on dev

    Persistence TestKit documentati… (compare)

  • Oct 21 15:56
    Aaronontheweb closed #3889
  • Oct 21 07:27
    dependabot-preview[bot] labeled #3999
  • Oct 21 07:27

    dependabot-preview[bot] on nuget

    Bump FluentAssertions from 4.14… (compare)

  • Oct 21 07:27
    dependabot-preview[bot] opened #3999
  • Oct 20 17:25
    valdisz synchronize #3889
  • Oct 20 17:17
    valdisz synchronize #3889
  • Oct 20 15:44
    valdisz synchronize #3889
  • Oct 20 09:22
    ismaelhamed commented #3863
  • Oct 19 23:39
    valdisz synchronize #3889
  • Oct 19 23:08
    edvinasz commented #2947
  • Oct 19 13:36
    Aaronontheweb commented #3973
Maciek Misztal
@mmisztal1980

that was my 1st thought but :

Akka.SearchController.References[name] = Context.System.ActorOf(Context.DI().Props<SearchController>(), name);
Akka.SearchController.References[name].Forward(cmd);

seems to be right...

nothing with full debug logging :/
Ebere Abanonu
@eaba
And you are sure your log is properly setup?
Maciek Misztal
@mmisztal1980
akka : {
    stdout-loglevel : DEBUG
    loglevel : DEBUG
    log-config-on-start : on
    loggers : ["Akka.Logger.Serilog.SerilogLogger, Akka.Logger.Serilog"]
    actor : {
      debug : {
        receive : on
        autoreceive : on
        lifecycle : on
        event-stream : on
        unhandled : on
      }
    }
  }
I'm pretty sure it is
Ebere Abanonu
@eaba
Can you try out loggers = ["Akka.Logger.NLog.NLogLogger, Akka.Logger.NLog"]?
So that we can be on same page
Maciek Misztal
@mmisztal1980
that'd include rewriting most of my logging stack, as I'm heavy into structured logging so ... nope :)
Ebere Abanonu
@eaba
If you can, then create a file in your project named NLog.config
@ismaelhamed you wont rewrite anything
inside the config paste this:
<?xml version="1.0" encoding="utf-8" ?>
<nlog xmlns="http://www.nlog-project.org/schemas/NLog.xsd"
      xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">

  <targets>
    <target name="file" xsi:type="File" fileName="Debugs.log" />
  </targets>

  <rules>
    <logger name="*" minlevel="Debug" writeTo="file" />
  </rules>

</nlog>
Everything is auto
Maciek Misztal
@mmisztal1980
I'm sorry but rewriting my logging stack is not an option :)
Ebere Abanonu
@eaba
Okay
I never wrote any logging stack
At times you will need to hack to see inside
Maciek Misztal
@mmisztal1980
right now I'm trying to see if there are any unhandled exceptions flying under the hood, but nothing is happening in there - which would indicate that maybe the IActorRef is incorrect, but on the other hand the code doesn't indicate this :/
Ebere Abanonu
@eaba
@mmisztal1980 I get you perfectly
Like I said, though it might be painful, unplug your logging stack
What I have pasted above logs everything including exceptions
Maciek Misztal
@mmisztal1980
I have a similar setup right now :)
Maciek Misztal
@mmisztal1980
interestingly, if I send PoisonPill.Instance to the actor before doing the .Tell a deadletter message is logged :D
Bartosz Sypytkowski
@Horusiath
@eaba it looks like, you're trying to use some object that JSON.NET is not able to serialize - my guess would be that you're trying to use Akka.Cluster.Sharding (which has warning to not use json.net as a default ;) )
you can try to change it to something else, like Hyperion, or to use akka.cluster.sharding in ddata mode
Ebere Abanonu
@eaba
@Horusiath am not using akka.cluster.sharding no akka.cluster atm... @ismaelhamed suggestion:
serialization-settings.json {
                        preserve-object-references = false
                        encode-type-names = false
                    }
Is taking me further......what do you say about it?
Arjen Smits
@Danthar
Im sure it helps. But like @Horusiath is saying. If your using Cluster Sharding. Using json.net is highly discouraged
When using cluster sharding. or actually, any akka modules with persistence. You will want to have explicit control over your message schema's
considering that akka.persistence is using event-sourcing
Ebere Abanonu
@eaba
When using cluster sharding. or actually, any akka modules with persistence. You will want to have explicit control over your message schema's
Am not using cluster sharding
Arjen Smits
@Danthar
ok
Ebere Abanonu
@eaba
So am left with persistence
does preserve-object-references = false
solve my problem
should i be worried about something going that way?
Arjen Smits
@Danthar
perhaps. i dont know what your message schema looks like. But you can test that pretty quickly yourself
going what way ?
Ebere Abanonu
@eaba
preserve-object-references = false way
Tested and working
Arjen Smits
@Danthar
ah. Im not aware of any long term issues with disabling object-references
Ebere Abanonu
@eaba
My message is just an Immutable Dictionary wrapped in a custom class
Ok
Arjen Smits
@Danthar
ah. yeah json.net can have issues with that
immutable collection types and json.net have a history of bugs
Ebere Abanonu
@eaba
Ok I will note that
Arjen Smits
@Danthar
so be sure to test all your message types if you continue to use immutable collection types with json.net
Ebere Abanonu
@eaba
Ok...
Thanks @Danthar