Comments (5)
In what context? during ResolveActorRef ? ActorSelection?
from akka.net.
I'm thinking
Context.Child
and Context.ActorSelection
from akka.net.
Yes, I checked the impl for getSingleChild on actorref, actorcell and actorselection, they all point to this method:
override def getSingleChild(name: String): InternalActorRef =
if (name.indexOf('#') == -1) {
// optimization for the non-uid case
getChildByName(name) match {
case Some(crs: ChildRestartStats) ⇒ crs.child.asInstanceOf[InternalActorRef]
case _ ⇒ Nobody
So you are correct :)
ActorCell.Child(...) in pigeon needs to be refactored to behave (and renamed) according to the scala code
from akka.net.
I made ActorCell.Child(string name) use the extension to resolve Nobody, so we don't get null refs back from this.
In Akka, there are multiple methods for this, "Child(string name)" in their case, returns "some/none" FP style.. while getSingleChild returns Nobody if not found. ¨
Not sure if we need to make a distinction on this here?
from akka.net.
@rogeralsing nah, seems like semantics. This is a good solution for the time being.
One thing we should consider adding (saw this in Akka) is an EmptyLocalAftorRef for this scenario - subclasses from LocalActorRef and just redirects all messages directly to DeadLetters. Seems like a good solution for being able to help debug scenarios where a Pigeon user is sending messages to a child that doesn't actually exist.
from akka.net.
Related Issues (20)
- Akka.Streams: `DivertTo` requires `NotUsed` materialization value instead of being generic HOT 2
- Enable debug logging for ShardCoordinator/ShardRegion/Shard actors HOT 7
- Shard not receiving/handling EntityTerminated message after passivation HOT 7
- "Shutting down myself" caused by error occured in remote node. HOT 2
- FishForMessageAsync deadlocks with actor that has async receive handler and testprobe.Tell HOT 1
- [Stream] Stream cancellation/completion signal might not reach `ActorRefSourceActor`
- Akka.Streams: make it easier to pass in a friendly `LogSource` name
- Akka.Streams: make `LogLevel` customizable on the `.Log` method
- Contention scheduling actions in HashedWheelTimerScheduler HOT 7
- What is the correct way of disabling recovery of ReceivePersistentActor after some particular evert HOT 1
- Messages are irregularly lost. HOT 3
- ExpectMsgAsync deadlocks with actor that has async receive handler and testprobe.Tell HOT 5
- Should clustered pool routers be configured using "singleton" path segment? HOT 1
- Message to a clustered broadcast pool router is not broadcasted to all routees in a cluster HOT 14
- Support Multihoming HOT 10
- Failed to write message [Akka.Remote.DaemonMsgCreate] when using Akka.NET F# API HOT 2
- Akka.TestKit: `EventFilter.Expect_Async` waits full `expect-msg-after` period even if internal method has already finished HOT 5
- Akka.Remote: running multiple instances of DotNetty transport can error of `enable-batching` is not explicitly provided
- Using ReceivePersistentActor with IWithUnboundedStash causes NullReferenceException in Eventsourced.AroundPostStop HOT 3
- Some error messages are not logged unless info logging is turned on HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from akka.net.