flink-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF GitHub Bot (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (FLINK-1543) Proper exception handling in actors
Date Fri, 13 Feb 2015 19:40:12 GMT

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

ASF GitHub Bot commented on FLINK-1543:
---------------------------------------

Github user hsaputra commented on a diff in the pull request:

    https://github.com/apache/flink/pull/394#discussion_r24690375
  
    --- Diff: flink-runtime/src/test/java/org/apache/flink/runtime/taskmanager/TaskManagerTest.java
---
    @@ -486,7 +489,8 @@ protected void run() {
     		public void onReceive(Object message) throws Exception {
     			if(message instanceof RegistrationMessages.RegisterTaskManager){
     				final InstanceID iid = new InstanceID();
    -				getSender().tell(new RegistrationMessages.AcknowledgeRegistration(iid, -1),
    +				getSender().tell(new RegistrationMessages.AcknowledgeRegistration(iid, -1,
    +								Option.<ActorRef>apply(null)),
    --- End diff --
    
    Just curious, why not just pass None instead of {{Option.<ActorRef>apply(null)}}
?


> Proper exception handling in actors
> -----------------------------------
>
>                 Key: FLINK-1543
>                 URL: https://issues.apache.org/jira/browse/FLINK-1543
>             Project: Flink
>          Issue Type: Improvement
>            Reporter: Till Rohrmann
>
> With Akka's actors it is important to not throw exceptions in the actor thread, if one
does not want that the actor restarts or stops. Many of the Java components which are called
from the actor's receive method throw exceptions which are not properly handled by the actor
thread. Therefore, we have to catch these exceptions and handle them properly. 



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

Mime
View raw message