2014-04-08 3 views
2

와일드 카드로 actorSelection을 호출하고 일치하는 액터가 없으면 응답으로 ActorIdentity(None,None)이 발생하지만 아무 일도 일어나지 않습니다. 정상적인 상황입니까 아니면 여기에 뭔가 빠졌습니까?와일드 카드를 사용할 때 actorSelection이 응답하지 않습니다.

class A extends Actor { 
    val b = context.actorOf(Props[B], "test") 
    def receive = { case x => println(s"Response: $x") } 

    context.actorSelection("/user/a/test") ! Identify(None) 
    // Response: ActorIdentity(None,Some(Actor[akka://sys/user/a/test#121958964])) 

    context.actorSelection("/user/a/nothing") ! Identify(None) 
    // Response: ActorIdentity(None,None) 

    context.actorSelection("/user/a/x*") ! Identify(None) 
    // Nothing happens 
} 
+0

... 이후 전혀 버그 (티켓 의견을 참조)가 작동합니다. 테스트 코드가 잘못되었을 가능성이 있습니까? 죽은 편지가 보입니까? – Christian

+0

@Christian, 아니, 콘솔 출력에는 표시되지 않습니다. 어떤 버전의 akka를 사용하십니까? 내 테스트는 2.2.3 – Anton

+0

입니다. 다시 테스트했습니다. 나는 똑같은 행동을한다. akka 메일 링리스트에 질문을 게시했습니다. https://groups.google.com/forum/#!topic/akka-user/qnp_DHpnKIQ 2.2.3도 사용하고 있습니다. – Christian

답변

관련 문제