Hadoop Common
  1. Hadoop Common
  2. HADOOP-7208

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

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 0.23.0
    • Fix Version/s: 0.23.0
    • Component/s: None
    • Labels:
      None
    • Hadoop Flags:
      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

      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

        No work has yet been logged on this issue.

          People

          • Assignee:
            Uma Maheswara Rao G
            Reporter:
            Uma Maheswara Rao G
          • Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development