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

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

    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

          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: