Uploaded image for project: 'Apache Avro'
  1. Apache Avro
  2. AVRO-1591

Java - handle hashCode / equals / toString in SpecificRequestor

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 1.8.0
    • java
    • None

    Description

      SpecificRequestor does not handle hashCode / equals / toString in its invoke method. This problem cropped up when using commons-pool2's GenericKeyedObjectPool.create(), which attempts to put pool object wrappers into a map, keying off the original object:

      objectDeque.getAllObjects().put(p.getObject(), p);

      The put calls hashCode() which is not handled, resulting in an AvroRemoteException.

      See proposed patch for details.

      Attachments

        1. AVRO-1591.patch
          6 kB
          Mark Spadoni

        Activity

          People

            mspadoni Mark Spadoni
            mspadoni Mark Spadoni
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: