Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
  • 00:10
    Aaronontheweb synchronize #4212
  • Feb 20 23:50
    Aaronontheweb synchronize #4238
  • Feb 20 23:48
    Aaronontheweb commented #4234
  • Feb 20 23:47
    Aaronontheweb synchronize #4212
  • Feb 20 23:46

    Aaronontheweb on dev

    close #4234 - added CachingConf… (compare)

  • Feb 20 23:46
    Aaronontheweb closed #4239
  • Feb 20 23:46
    Aaronontheweb closed #4234
  • Feb 20 23:25
    Aaronontheweb synchronize #4239
  • Feb 20 23:24
    Aaronontheweb opened #4239
  • Feb 20 23:14
    Aaronontheweb commented #4234
  • Feb 20 22:52
    Aaronontheweb commented #4234
  • Feb 20 22:27
    Aaronontheweb synchronize #4212
  • Feb 20 22:27
    Aaronontheweb commented #4238
  • Feb 20 22:24
    Aaronontheweb synchronize #4212
  • Feb 20 21:48
    cptjazz synchronize #4238
  • Feb 20 21:07
    Aaronontheweb labeled #4238
  • Feb 20 20:58
    cptjazz opened #4238
  • Feb 20 20:45
    Aaronontheweb ready_for_review #4212
  • Feb 20 20:45
    Aaronontheweb edited #4212
  • Feb 20 20:45
    Aaronontheweb synchronize #4212
Bartosz Sypytkowski
@Horusiath
@softwaremike v1.1.1 works normally. @Danthar meant azure websites. Do we have ticket for that?
Arjen Smits
@Danthar
@Horusiath I am not sure. It has come up several times. But i think it was related to a bug in how we resolved hostname's at first, and later on ipv6 issues. Which afaik both have been resolved
I think this played largely during your vacation ;)
Mike Johnson
@softwaremike
@Horusiath OK thanks!
Next problem - I upgraded all my projects across the board to 1.1.1. When the actor system starts up, I now get this exception:
Logger [Akka.Event.DefaultLogger] specified in config cannot be loaded:
System.MissingMethodException: Method not found: 'System.Type Akka.Dispatch.Mailboxes.GetMailboxType(Akka.Actor.Props, Akka.Configuration.Config)'.
at Akka.Remote.RemoteActorRefProvider.ActorOf(ActorSystemImpl system, Props props, IInternalActorRef supervisor, ActorPath path, Boolean systemService, Deploy deploy, Boolean lookupDeploy, Boolean async)
at Akka.Actor.ActorCell.MakeChild(Props props, String name, Boolean async, Boolean systemService)
at Akka.Actor.ActorCell.AttachChild(Props props, Boolean isSystemService, String name)
at Akka.Actor.Internal.ActorSystemImpl.SystemActorOf(Props props, String name)
at Akka.Event.LoggingBus.AddLogger(ActorSystemImpl system, Type loggerType, LogLevel logLevel, String loggingBusName, TimeSpan timeout)
at Akka.Event.LoggingBus.StartDefaultLoggers(ActorSystemImpl system)
My HOCON config is very simple:

akka {
actor {
provider = "Akka.Remote.RemoteActorRefProvider, Akka.Remote"
}

remote {
    helios.tcp {
        port = 8092
        hostname = localhost
    }
}

}

Mike Johnson
@softwaremike
Anyone seen this exception before?
Mike Johnson
@softwaremike
Never mind, ignore that... one of my projects still had Akka.Remote 1.0.8 it its references :) oops!
riawz
@riawz

I have an actor which itself loops, like GetMsg, ProcessMsg, if GetMsg is not null, then pass to ProcessMsg, otherwise, wait for a few seconds then tell itself to GetMsg again

what's the best way to test this kind of workflow?

GetMsg and ProcessMsg are two separate actors, which ProcessMsg is created by GetMsg
Peter Hvidgaard
@hvidgaard
Anyone have experience with SimpleInjector and Akka.net together? I'm getting "Do not create actors using 'new', always create them using an ActorContext/System" when the container is verified.
I initialize like this
container.Register<QueryDataStoreActorBase, QuerySqlDataStore>();
var system = ActorSystem.Create("ActorSystem");
system.AddDependencyResolver(new SimpleInjectorDependencyResolver(container, system));
container.RegisterSingleton(system);
riawz
@riawz
is there a way to ExpectMsg<MsgType>() multiple times?
Arjen Smits
@Danthar
@hvidgaard system.AddDependencyResolver(new SimpleInjectorDependencyResolver(container, system)); is wrong
Just calling var resolver = new SimpleInjectorDependencyResolver(container, system); is enough
it registers itself with the system
the system.AddDepedencyResolver is a public api exposed for the DI plugins to use. It should not be used directly. Although it is possible, if you know what you are doing.
Peter Hvidgaard
@hvidgaard
@Danthar Alright, removed that line, but the example still fails because SI creates all registered dependencies during verification.
Arjen Smits
@Danthar
@riawz ExpectMsgAllOf ??
Oh? thats odd.
riawz
@riawz
actually, I don't need it, I have actor A which creates actor B, B is roundrobin, but when I'm testing, I can only test against a single instance of actor B, so I don't need it, thanks
A will receive 2 response from 2 B instances, that's what I was thinking of testing but I can't find a way to "mock" router using testkit
Arjen Smits
@Danthar
@hvidgaard it looks like the SimpleInjector plugin is still on 1.0.8 ?
The tests work. So plugin integration for 1.0.8 looks good
Peter Hvidgaard
@hvidgaard
I've updated to the latest akka.net packages, I assumed that a minor version increase wasn't a problem.
Arjen Smits
@Danthar
Have you ran the tests ?
Peter Hvidgaard
@hvidgaard
no, I've used the NuGet packages.
Arjen Smits
@Danthar
That would be a problem :P
If you upgrade, you should rebuild the plugin against the latest akka.net packages
Peter Hvidgaard
@hvidgaard
okay, good to know...
Arjen Smits
@Danthar
I just forked the repo and got the env open just now. ill check for you
It looks ok.
I gtg, got a meeting
Peter Hvidgaard
@hvidgaard
alright, playing with it myself. Thanks so far
Arjen Smits
@Danthar
but if you update the repo to have the plugin use the latest akka.net. And build a version explicitly targetting it, that should work
also check the tests project of the plugin, for details on how to register dependencies
could be the readme is wrong
gl!
Peter Hvidgaard
@hvidgaard
ok, I'll try that.
Peter Hvidgaard
@hvidgaard
@Danthar I figured out what was wrong. I had an Actor that was a base for my other Actors that query a datastore. When creating a class it automatically creates the base class as well, leading to the issue. Nothing to do with SImple Injector.
Arjen Smits
@Danthar
ah, good to hear you figured it out. :+1:
Julien Adam
@julienadam
Hey guys, I have a cluster running with 6 nodes including 2 seeds (A and B), all started at the same time. According to the logs, the leader is trying to move seed node B to [Up] every 3 or 4 seconds. Node B appears as "Joining" to my monitoring node but never goes to the Up status. No dead letters, no exceptions. I've restarted the whole cluster twice but the situation persists. Any ideas ?
Bartosz Sypytkowski
@Horusiath
@julienadam does seeds know about each other? what if you'll introduce a little delay between starting them?
Julien Adam
@julienadam
all the nodes have both seeds set in the akka.cluster.seed-nodes config property. I'll try with a delay
interesting, it's always the last node I start that the leader is trying to move to Up but remains 'Joining' to the other nodes
Max
@maxpaj
Anyone got experience with Akka.Persistence with Redis storage connector? I can't get it to work and I'm getting no errors... It's weird.