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

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

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

    https://github.com/apache/flink/pull/2405#discussion_r75906099
  
    --- Diff: 
flink-runtime/src/test/java/org/apache/flink/runtime/rpc/akka/AkkaRpcActorTest.java
 ---
    @@ -73,6 +75,22 @@ public void testAddressResolution() throws Exception {
        }
     
        /**
    +    * Tests that a {@link RpcConnectionException} is thrown if the rpc 
endpoint cannot be connected to.
    +    */
    +   @Test
    +   public void testFailingAddressResolution() throws Exception {
    +           Future<DummyRpcGateway> futureRpcGateway = 
akkaRpcService.connect("foobar", DummyRpcGateway.class);
    +
    +           try {
    +                   DummyRpcGateway gateway = 
Await.result(futureRpcGateway, timeout.duration());
    --- End diff --
    
    Will this fail immediately, or only after a timeout?


> Throw exception when remote connection cannot be resolved
> ---------------------------------------------------------
>
>                 Key: FLINK-4451
>                 URL: https://issues.apache.org/jira/browse/FLINK-4451
>             Project: Flink
>          Issue Type: Sub-task
>          Components: Distributed Coordination
>            Reporter: Till Rohrmann
>            Assignee: Till Rohrmann
>
> The {{RpcService}} implementation should throw an exception (returned in the 
> future) if {{RpcService.connect(address, type)}} cannot connect to the remote 
> {{RpcEndpoint}}.
> At the moment the {{AkkaRpcService}} does not check that the 
> {{IdentifyActor}} message contains a valid {{ActorRef}} and throws due to 
> that a {{NullPointerException}}.



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

Reply via email to