Ah, sorry, you're right, with that signature the only thing we could change
would be to disallow resolveOne on wildcard selections.


On Thu, Apr 10, 2014 at 4:47 PM, Patrik Nordwall
<[email protected]>wrote:

>
>
>
> On Thu, Apr 10, 2014 at 3:11 PM, √iktor Ҡlang <[email protected]>wrote:
>
>>
>>
>>
>> On Thu, Apr 10, 2014 at 3:10 PM, √iktor Ҡlang <[email protected]>wrote:
>>
>>>
>>>
>>>
>>> On Thu, Apr 10, 2014 at 2:57 PM, Patrik Nordwall <
>>> [email protected]> wrote:
>>>
>>>>
>>>>
>>>>
>>>> On Thu, Apr 10, 2014 at 2:41 PM, √iktor Ҡlang 
>>>> <[email protected]>wrote:
>>>>
>>>>>
>>>>>
>>>>>
>>>>> On Thu, Apr 10, 2014 at 2:28 PM, Patrik Nordwall <
>>>>> [email protected]> wrote:
>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>> On Thu, Apr 10, 2014 at 2:24 PM, √iktor Ҡlang <[email protected]
>>>>>> > wrote:
>>>>>>
>>>>>>> I would even argue that it should fail with a perfectly
>>>>>>> understandable Exception.
>>>>>>>
>>>>>>
>>>>>> Sending the Identify with tell can't fail with an exception, but if
>>>>>> you use ask or resolveOne you will get a TimeoutException, as expected.
>>>>>>
>>>>>
>>>>> Can't we just check if it is a wildcard and immediately return a
>>>>> failed Future with IllegalStateException("Cannot resolveOne with a
>>>>> wild-card selection")?
>>>>>
>>>>
>>>> When we designed this (and that was not me alone) we decided that
>>>> resolveOne would complete with the first reply within the specified 
>>>> timeout.
>>>>
>>>
>>> Hmm, couldn't we do a `recover { case _: TimeoutException =>
>>> ActorIdentity(None) }` ?
>>>
>>
> That is the wrong signature. I must admit that I don't understand the
> problem.
>
>   /**
>    * Resolve the [[ActorRef]] matching this selection.
>    * The result is returned as a Future that is completed with the
> [[ActorRef]]
>    * if such an actor exists. It is completed with failure [[
> *ActorNotFound*]] if
>    * no such actor exists or the identification didn't complete within the
>    * supplied `timeout`.
>    *
>    * Under the hood it talks to the actor to verify its existence and
> acquire its
>    * [[ActorRef]].
>    */
>   def resolveOne(timeout: FiniteDuration): Future[ActorRef] =
> resolveOne()(timeout)
>
>
>>
>> In the case of wildcards that is
>>
>>
>>>
>>>
>>>>
>>>>
>>>>>
>>>>>
>>>>>>
>>>>>> I agree with the documentation part, and noted that in the ticket.
>>>>>>
>>>>>> /Patrik
>>>>>>
>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> On Thu, Apr 10, 2014 at 1:24 PM, Heiko Seeberger <
>>>>>>> [email protected]> wrote:
>>>>>>>
>>>>>>>> Makes total sense. Should be documented more explicitly, though.
>>>>>>>>
>>>>>>>> Thanks
>>>>>>>> Heiko
>>>>>>>>
>>>>>>>>
>>>>>>>> On Thu, Apr 10, 2014 at 11:13 AM, Patrik Nordwall <
>>>>>>>> [email protected]> wrote:
>>>>>>>>
>>>>>>>>> This is by design for wildcard selections and I think it would be
>>>>>>>>> very difficult to implement it.
>>>>>>>>> When should it reply with ActorIdentity(None)? The wildcard can
>>>>>>>>> potentially traverse remote nodes.
>>>>>>>>>
>>>>>>>>> /Patrik
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> On Thu, Apr 10, 2014 at 10:58 AM, chris <[email protected]
>>>>>>>>> > wrote:
>>>>>>>>>
>>>>>>>>>> Thanks!
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> On Thursday, April 10, 2014 10:39:45 AM UTC+2, Heiko Seeberger
>>>>>>>>>> wrote:
>>>>>>>>>>
>>>>>>>>>>> Hi,
>>>>>>>>>>>
>>>>>>>>>>> I can verify this behavior which I consider a bug.
>>>>>>>>>>>  Ticket created: https://www.assembla.
>>>>>>>>>>> com/spaces/akka/tickets/3992
>>>>>>>>>>>
>>>>>>>>>>> Heiko
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>> On Thu, Apr 10, 2014 at 9:56 AM, chris <[email protected]>wrote:
>>>>>>>>>>>
>>>>>>>>>>>> Hi,
>>>>>>>>>>>>   an interesting question got posted on stackoverflow:
>>>>>>>>>>>>   https://stackoverflow.com/questions/22948717/
>>>>>>>>>>>> actorselection-does-not-respond-when-wildcard-is-used
>>>>>>>>>>>>
>>>>>>>>>>>>   When using an actor selection with wildcards (which does not
>>>>>>>>>>>> match an actor) no response
>>>>>>>>>>>>   (ActorIdentity) is sent to the Identify message. Is this
>>>>>>>>>>>> normal behaviour?
>>>>>>>>>>>>
>>>>>>>>>>>> Cheers,
>>>>>>>>>>>>   Christian
>>>>>>>>>>>>
>>>>>>>>>>>> --
>>>>>>>>>>>> >>>>>>>>>> Read the docs: http://akka.io/docs/
>>>>>>>>>>>> >>>>>>>>>> Check the FAQ: http://doc.akka.io/docs/akka/
>>>>>>>>>>>> current/additional/faq.html
>>>>>>>>>>>> >>>>>>>>>> Search the archives: https://groups.google.com/
>>>>>>>>>>>> group/akka-user
>>>>>>>>>>>> ---
>>>>>>>>>>>> You received this message because you are subscribed to the
>>>>>>>>>>>> Google Groups "Akka User List" group.
>>>>>>>>>>>> To unsubscribe from this group and stop receiving emails from
>>>>>>>>>>>> it, send an email to [email protected].
>>>>>>>>>>>> To post to this group, send email to [email protected].
>>>>>>>>>>>>
>>>>>>>>>>>> Visit this group at http://groups.google.com/group/akka-user.
>>>>>>>>>>>> For more options, visit https://groups.google.com/d/optout.
>>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>> --
>>>>>>>>>>>
>>>>>>>>>>> Heiko Seeberger
>>>>>>>>>>> Twitter: @hseeberger
>>>>>>>>>>> Blog: blog.heikoseeberger.name
>>>>>>>>>>>
>>>>>>>>>>  --
>>>>>>>>>> >>>>>>>>>> Read the docs: http://akka.io/docs/
>>>>>>>>>> >>>>>>>>>> Check the FAQ:
>>>>>>>>>> http://doc.akka.io/docs/akka/current/additional/faq.html
>>>>>>>>>> >>>>>>>>>> Search the archives:
>>>>>>>>>> https://groups.google.com/group/akka-user
>>>>>>>>>> ---
>>>>>>>>>> You received this message because you are subscribed to the
>>>>>>>>>> Google Groups "Akka User List" group.
>>>>>>>>>> To unsubscribe from this group and stop receiving emails from it,
>>>>>>>>>> send an email to [email protected].
>>>>>>>>>> To post to this group, send email to [email protected].
>>>>>>>>>> Visit this group at http://groups.google.com/group/akka-user.
>>>>>>>>>> For more options, visit https://groups.google.com/d/optout.
>>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> --
>>>>>>>>>
>>>>>>>>> Patrik Nordwall
>>>>>>>>> Typesafe <http://typesafe.com/> -  Reactive apps on the JVM
>>>>>>>>> Twitter: @patriknw
>>>>>>>>> JOIN US. REGISTER TODAY! <http://www.scaladays.org/>
>>>>>>>>> Scala <http://www.scaladays.org/>
>>>>>>>>> Days <http://www.scaladays.org/>
>>>>>>>>> June 16th-18th, <http://www.scaladays.org/>
>>>>>>>>> Berlin <http://www.scaladays.org/>
>>>>>>>>>
>>>>>>>>>  --
>>>>>>>>> >>>>>>>>>> Read the docs: http://akka.io/docs/
>>>>>>>>> >>>>>>>>>> Check the FAQ:
>>>>>>>>> http://doc.akka.io/docs/akka/current/additional/faq.html
>>>>>>>>> >>>>>>>>>> Search the archives:
>>>>>>>>> https://groups.google.com/group/akka-user
>>>>>>>>> ---
>>>>>>>>> You received this message because you are subscribed to the Google
>>>>>>>>> Groups "Akka User List" group.
>>>>>>>>> To unsubscribe from this group and stop receiving emails from it,
>>>>>>>>> send an email to [email protected].
>>>>>>>>> To post to this group, send email to [email protected].
>>>>>>>>> Visit this group at http://groups.google.com/group/akka-user.
>>>>>>>>> For more options, visit https://groups.google.com/d/optout.
>>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>> --
>>>>>>>>
>>>>>>>> Heiko Seeberger
>>>>>>>> Twitter: @hseeberger
>>>>>>>> Blog: blog.heikoseeberger.name
>>>>>>>>
>>>>>>>> --
>>>>>>>> >>>>>>>>>> Read the docs: http://akka.io/docs/
>>>>>>>> >>>>>>>>>> Check the FAQ:
>>>>>>>> http://doc.akka.io/docs/akka/current/additional/faq.html
>>>>>>>> >>>>>>>>>> Search the archives:
>>>>>>>> https://groups.google.com/group/akka-user
>>>>>>>> ---
>>>>>>>> You received this message because you are subscribed to the Google
>>>>>>>> Groups "Akka User List" group.
>>>>>>>> To unsubscribe from this group and stop receiving emails from it,
>>>>>>>> send an email to [email protected].
>>>>>>>> To post to this group, send email to [email protected].
>>>>>>>> Visit this group at http://groups.google.com/group/akka-user.
>>>>>>>> For more options, visit https://groups.google.com/d/optout.
>>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> --
>>>>>>> Cheers,
>>>>>>> √
>>>>>>>
>>>>>>> --
>>>>>>> >>>>>>>>>> Read the docs: http://akka.io/docs/
>>>>>>> >>>>>>>>>> Check the FAQ:
>>>>>>> http://doc.akka.io/docs/akka/current/additional/faq.html
>>>>>>> >>>>>>>>>> Search the archives:
>>>>>>> https://groups.google.com/group/akka-user
>>>>>>> ---
>>>>>>> You received this message because you are subscribed to the Google
>>>>>>> Groups "Akka User List" group.
>>>>>>> To unsubscribe from this group and stop receiving emails from it,
>>>>>>> send an email to [email protected].
>>>>>>> To post to this group, send email to [email protected].
>>>>>>> Visit this group at http://groups.google.com/group/akka-user.
>>>>>>> For more options, visit https://groups.google.com/d/optout.
>>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>> --
>>>>>>
>>>>>> Patrik Nordwall
>>>>>> Typesafe <http://typesafe.com/> -  Reactive apps on the JVM
>>>>>> Twitter: @patriknw
>>>>>> JOIN US. REGISTER TODAY! <http://www.scaladays.org/>
>>>>>> Scala <http://www.scaladays.org/>
>>>>>> Days <http://www.scaladays.org/>
>>>>>> June 16th-18th, <http://www.scaladays.org/>
>>>>>> Berlin <http://www.scaladays.org/>
>>>>>>
>>>>>>  --
>>>>>> >>>>>>>>>> Read the docs: http://akka.io/docs/
>>>>>> >>>>>>>>>> Check the FAQ:
>>>>>> http://doc.akka.io/docs/akka/current/additional/faq.html
>>>>>> >>>>>>>>>> Search the archives:
>>>>>> https://groups.google.com/group/akka-user
>>>>>> ---
>>>>>> You received this message because you are subscribed to the Google
>>>>>> Groups "Akka User List" group.
>>>>>> To unsubscribe from this group and stop receiving emails from it,
>>>>>> send an email to [email protected].
>>>>>> To post to this group, send email to [email protected].
>>>>>> Visit this group at http://groups.google.com/group/akka-user.
>>>>>> For more options, visit https://groups.google.com/d/optout.
>>>>>>
>>>>>
>>>>>
>>>>>
>>>>> --
>>>>> Cheers,
>>>>> √
>>>>>
>>>>> --
>>>>> >>>>>>>>>> Read the docs: http://akka.io/docs/
>>>>> >>>>>>>>>> Check the FAQ:
>>>>> http://doc.akka.io/docs/akka/current/additional/faq.html
>>>>> >>>>>>>>>> Search the archives:
>>>>> https://groups.google.com/group/akka-user
>>>>> ---
>>>>> You received this message because you are subscribed to the Google
>>>>> Groups "Akka User List" group.
>>>>> To unsubscribe from this group and stop receiving emails from it, send
>>>>> an email to [email protected].
>>>>> To post to this group, send email to [email protected].
>>>>> Visit this group at http://groups.google.com/group/akka-user.
>>>>> For more options, visit https://groups.google.com/d/optout.
>>>>>
>>>>
>>>>
>>>>
>>>> --
>>>>
>>>> Patrik Nordwall
>>>> Typesafe <http://typesafe.com/> -  Reactive apps on the JVM
>>>> Twitter: @patriknw
>>>> JOIN US. REGISTER TODAY! <http://www.scaladays.org/>
>>>> Scala <http://www.scaladays.org/>
>>>> Days <http://www.scaladays.org/>
>>>> June 16th-18th, <http://www.scaladays.org/>
>>>> Berlin <http://www.scaladays.org/>
>>>>
>>>>  --
>>>> >>>>>>>>>> Read the docs: http://akka.io/docs/
>>>> >>>>>>>>>> Check the FAQ:
>>>> http://doc.akka.io/docs/akka/current/additional/faq.html
>>>> >>>>>>>>>> Search the archives:
>>>> https://groups.google.com/group/akka-user
>>>> ---
>>>> You received this message because you are subscribed to the Google
>>>> Groups "Akka User List" group.
>>>> To unsubscribe from this group and stop receiving emails from it, send
>>>> an email to [email protected].
>>>> To post to this group, send email to [email protected].
>>>> Visit this group at http://groups.google.com/group/akka-user.
>>>> For more options, visit https://groups.google.com/d/optout.
>>>>
>>>
>>>
>>>
>>> --
>>> Cheers,
>>> √
>>>
>>
>>
>>
>> --
>> Cheers,
>> √
>>
>> --
>> >>>>>>>>>> Read the docs: http://akka.io/docs/
>> >>>>>>>>>> Check the FAQ:
>> http://doc.akka.io/docs/akka/current/additional/faq.html
>> >>>>>>>>>> Search the archives: https://groups.google.com/group/akka-user
>> ---
>> You received this message because you are subscribed to the Google Groups
>> "Akka User List" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to [email protected].
>> To post to this group, send email to [email protected].
>> Visit this group at http://groups.google.com/group/akka-user.
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>
>
> --
>
> Patrik Nordwall
> Typesafe <http://typesafe.com/> -  Reactive apps on the JVM
> Twitter: @patriknw
> JOIN US. REGISTER TODAY! <http://www.scaladays.org/>
> Scala <http://www.scaladays.org/>
> Days <http://www.scaladays.org/>
> June 16th-18th, <http://www.scaladays.org/>
> Berlin <http://www.scaladays.org/>
>
>  --
> >>>>>>>>>> Read the docs: http://akka.io/docs/
> >>>>>>>>>> Check the FAQ:
> http://doc.akka.io/docs/akka/current/additional/faq.html
> >>>>>>>>>> Search the archives: https://groups.google.com/group/akka-user
> ---
> You received this message because you are subscribed to the Google Groups
> "Akka User List" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to [email protected].
> Visit this group at http://groups.google.com/group/akka-user.
> For more options, visit https://groups.google.com/d/optout.
>



-- 
Cheers,
√

-- 
>>>>>>>>>>      Read the docs: http://akka.io/docs/
>>>>>>>>>>      Check the FAQ: 
>>>>>>>>>> http://doc.akka.io/docs/akka/current/additional/faq.html
>>>>>>>>>>      Search the archives: https://groups.google.com/group/akka-user
--- 
You received this message because you are subscribed to the Google Groups "Akka 
User List" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/akka-user.
For more options, visit https://groups.google.com/d/optout.

Reply via email to