Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
  • 20:59
    sean-gilliam commented #3889
  • 20:59
    sean-gilliam opened #4001
  • 16:07
    spankr commented #3921
  • 15:55
    Aaronontheweb labeled #3765
  • 15:54
    Aaronontheweb labeled #3765
  • 15:54
    Aaronontheweb milestoned #3765
  • 15:53
    Aaronontheweb closed #3902
  • 15:23
    Aaronontheweb commented #3921
  • 15:11
    spankr commented #3921
  • 15:05
    Aaronontheweb commented #3973
  • 15:05
    Aaronontheweb commented #3973
  • 15:02
    Aaronontheweb commented #4000
  • 15:02
    Aaronontheweb milestoned #4000
  • 15:02
    Aaronontheweb assigned #4000
  • 15:01
    Aaronontheweb commented #3889
  • 14:55
    sean-gilliam commented #3889
  • 14:35
    IgorFedchenko commented #3973
  • 13:10
    zbynek001 opened #4000
  • 11:20
    IgorFedchenko commented #3973
  • 11:20
    IgorFedchenko commented #3973
Aaron Stannard
@Aaronontheweb
think I know what the issue is
could you show me your HOCON declaration and your props call?
Ronnie Overby
@ronnieoverby
I should see that breakpoint get hit anytime a message delivered to actor with mailbox right?
Aaron Stannard
@Aaronontheweb
correct
Ronnie Overby
@ronnieoverby
ye
<akka>
<hocon>
<![CDATA[
akka {
loggers = ["AFS.BatchService.Actors.CtxLogger, AFS.BatchService"]
suppress-json-serializer-warning = on
}
pubsub-mailbox {
mailbox-type = "AFS.BatchService.Actors.PubSub+Mailbox, AFS.BatchService"
}
]]>
</hocon>
</akka>
ack I cant paste code to save my life
Aaron Stannard
@Aaronontheweb
np
I got the idea
could you show me the props call?
Ronnie Overby
@ronnieoverby
_actorSystem.ActorOf(Props.Create(() => new PubSub()).WithMailbox("pubsub-mailbox"), nameof(PubSub));
If you haven't caught on yet I'm trying to prioritize Subscription/Unsubscription messages over publish messages to a pub/sub actor
Aaron Stannard
@Aaronontheweb
oh man
Ronnie Overby
@ronnieoverby
?
Aaron Stannard
@Aaronontheweb
lol try this
Ronnie Overby
@ronnieoverby
the suspense!
Aaron Stannard
@Aaronontheweb
mailbox-type : "AFS.BatchService.Actors.PubSub+Mailbox, AFS.BatchService"
with the colon instead
the other possibility here is that the HOCON parser in Akka.NET can't deal with the nested type in the FQN
which would be... odd
since you said you can see it being instantiated
Ronnie Overby
@ronnieoverby
leave it to me to find an edge case the very first time I try to use something. It never fails
Aaron Stannard
@Aaronontheweb
just a guess - I think an = should work
Ronnie Overby
@ronnieoverby
yeah it's a nested class because no other actor would ever need this mailbox
Aaron Stannard
@Aaronontheweb
but I noticed that's what we did in our specs
Ronnie Overby
@ronnieoverby
no that didn't help
Aaron Stannard
@Aaronontheweb
ok
theory 2
nested types
Ronnie Overby
@ronnieoverby
1 sec let me try
Aaron Stannard
@Aaronontheweb
theory 3: you can verify that this actor is actually receiving messages, right?
Ronnie Overby
@ronnieoverby
theory 3 yes I def see receive handlers getting hit
theory 2 is no good
unnested type gets constructed but overridden method never called
I can maybe work up an isolated failing test for you
Aaron Stannard
@Aaronontheweb
if messages are making it through then, means that either your actor isn't using this mailbox
Ronnie Overby
@ronnieoverby
you see my props creation, though
Aaron Stannard
@Aaronontheweb
yep
Ronnie Overby
@ronnieoverby
and I see a debugger breaking in the mailbox ctor
want a stack trace at that point?
idk if it will help or not
Aaron Stannard
@Aaronontheweb
nah, I believe you on that
do me a favor
throw an exception in the PriorityGenerator
Ronnie Overby
@ronnieoverby
?
ok
Aaron Stannard
@Aaronontheweb
we call this a "tracer round"
lol
Ronnie Overby
@ronnieoverby
i like it
nothing happened