Uploaded image for project: 'Hadoop Common'
  1. Hadoop Common
  2. HADOOP-7208

equals() and hashCode() implementation need to change in StandardSocketFactory

VotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 0.23.0
    • 0.23.0
    • None
    • None
    • Reviewed

    Description

      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

      Attachments

        1. HADOOP-7208.patch
          5 kB
          Uma Maheswara Rao G
        2. HADOOP-7208-2.patch
          4 kB
          Uma Maheswara Rao G
        3. HADOOP-7208-3.patch
          4 kB
          Uma Maheswara Rao G

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            umamaheswararao Uma Maheswara Rao G
            umamaheswararao Uma Maheswara Rao G
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment