You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by "Ufuk Celebi (JIRA)" <ji...@apache.org> on 2015/02/10 13:27:11 UTC

[jira] [Commented] (FLINK-1508) Remove AkkaUtils.ask to encourage explicit future handling

    [ https://issues.apache.org/jira/browse/FLINK-1508?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14314086#comment-14314086 ] 

Ufuk Celebi commented on FLINK-1508:
------------------------------------

I agree.

I was actually misusing it earlier. Will it be used anywhere else after [#378|https://github.com/apache/flink/pull/378] is merged?

> Remove AkkaUtils.ask to encourage explicit future handling
> ----------------------------------------------------------
>
>                 Key: FLINK-1508
>                 URL: https://issues.apache.org/jira/browse/FLINK-1508
>             Project: Flink
>          Issue Type: Bug
>            Reporter: Till Rohrmann
>
> {{AkkaUtils.ask}} asks another actor and awaits its response. Since this constitutes a blocking call, it might be potentially harmful when used in an actor thread. In order to encourage developers to program asynchronously I propose to remove this helper function. That forces the developer to handle futures explicitly.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)