You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by "Till Rohrmann (JIRA)" <ji...@apache.org> on 2017/10/16 07:19:00 UTC

[jira] [Closed] (FLINK-4547) when call connect method in AkkaRpcService using same address and same rpc gateway class, the returned gateways are equal with respect to equals and hashCode

     [ https://issues.apache.org/jira/browse/FLINK-4547?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Till Rohrmann closed FLINK-4547.
--------------------------------
    Resolution: Won't Fix

The returned {{RpcGateway}} does not have to implement the equals and hashCode method. Instead one can always compare the addresses of it.

> when call connect method in AkkaRpcService using same address and same rpc gateway class, the returned gateways are equal with respect to equals and hashCode
> -------------------------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: FLINK-4547
>                 URL: https://issues.apache.org/jira/browse/FLINK-4547
>             Project: Flink
>          Issue Type: Sub-task
>          Components: Distributed Coordination
>            Reporter: jingzhang
>            Assignee: jingzhang
>
> Now every time call connect method in AkkaRpcService class using same address and same rpc gateway class, the return gateway object is totally different with each other which equals and hashcode are not same. 
> Maybe it’s reasonable to have the same result (equals return true, and hashcode is same) when using the same address and same Gateway class.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)