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

Uma Maheswara Rao G commented on HADOOP-7208:
---------------------------------------------

Sorry for the delay in replying and patch preparation.

We may need this change if we use our custom StandardSocketFactory

In the equals method if we change the implementation like 
return obj.getClass().getName().equals(this.getClass().getName());

It gives a findbug error.

Is it fine ? is there any way to get approval for the same.

> equals() and hashCode() implementation need to change in StandardSocketFactory
> ------------------------------------------------------------------------------
>
>                 Key: HADOOP-7208
>                 URL: https://issues.apache.org/jira/browse/HADOOP-7208
>             Project: Hadoop Common
>          Issue Type: Bug
>            Reporter: Uma Maheswara Rao G
>            Assignee: Uma Maheswara Rao G
>
>   In Hadoop IPC Client, we are using ClientCache which will maintain the 
> HashMap to keep the Client references.
> private Map<SocketFactory, Client> clients =
>       new HashMap<SocketFactory, Client>();
>  Now let us say, we want use two standard factories with Hadoop. 
> MyStandardSocketFactory (which extends StandardSocketFactory), and 
> StandardSocketFactory. In this case, because of equals and hashcode 
> implementation, MyStandardSocketFactory client can be overridden by 
> StandardSocketFactoryClient

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to